`Uncaught SyntaxError: Identifier 'path1' has already been declared` when running bundled/compiled code (upstream)
nnmrts opened this issue · 2 comments
nnmrts commented
Create the file test.js
with:
import AutoPilot from "https://deno.land/x/autopilot/mod.ts";
const pilot = new AutoPilot();
Run this:
deno run -A --unstable test.js
Output should be nothing, everything's fine. Now run this:
deno bundle --unstable test.js test.bundle.js
And then this:
deno run -A --unstable test.bundle.js
Output will be:
error: Uncaught SyntaxError: Identifier 'path1' has already been declared
function path1(url, ns) {
^
at <anonymous> (file:///path/to/test.bundle.js:1723:1)
nnmrts commented
Seems like this is fixed by denoland/deno#13025.
This issue can be closed once that PR gets released and everything works.
nnmrts commented
Yup, seems to be fixed.