Sorikairo
Sorikairo•3y ago

Deno bundle duplicating variables

Using Deno 1.26.2 I am trying to bundle https://github.com/Savory/Danet-Starter using deno bundle run.ts standalone-starter.js However, the generated standalone-starter.js contains duplicated variable declaration, resulting in error: Uncaught SyntaxError: Identifier 'mod' has already been declared while trying to use deno run standalone-starter.js. Did I do something wrong or is it a bug ?
4 Replies
Bubbles
Bubbles•3y ago
It's a bug if it runs when unbundled So if it's fine with deno run then you need to submit a bug report
Sorikairo
SorikairoOP•3y ago
It does. Rendez-vous on Github 👀
Bubbles
Bubbles•3y ago
Then it's a bug. You should report it
Sorikairo
SorikairoOP•3y ago
Omw (this is why I said RDV on Github, I'm creating an issue 😄 ) https://github.com/denoland/deno/issues/16390

Did you find this page helpful?