-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno bundle produces reference error #9350
Comments
cc/ @kdy1 |
FIxed on upstream |
Done in #9374 |
@bartlomieju @kdy1 I just ran this through the same steps to reproduce with Deno |
My understanding is this has been fixed in swc, but I haven't seen Deno pull in a new version in a while. Any chance the dependency could get bumped before the next release? |
@dev-nicolaos we updated just before the 1.8 release on tuesday. |
ah, missed it since it was bundled with other upgrades, thanks for pointing it out. Will rerun steps to reproduce on new 1.8.0. |
Bug still present walking through the above steps with Deno v1.8.0 and Deno std 0.89.0 😢 |
@kdy1 I just walked through the steps to reproduce again with Deno v1.9.0 and std 0.93.0 since I saw the version of the bundler got bumped, but this still appears to be an issue. |
swc_bundler: - Fix remapping of exports. (denoland/deno#9350)
Really fixed on upstream :) |
@bartlomieju @lucacasonato any chance we could see a upgrade to the bundler before the next release? Looks like this and several other bugs (#10112, #10187, #10252) have fixes available in the latest version. |
We'll update it for 1.9.2 in about a week |
Can confirm, fixed in 1.9.2. Thanks for the all the hard work @kdy1 |
Environment
Steps to reproduce
deno run --unstable --import-map=import_map.json mod.ts
deno bundle --unstable --import-map=import_map.json mod.ts bundle.js
deno run bundle.js
(with or without the--unstable
flag)Observed behavior
The program exits with an
Uncaught ReferenceError
Expected behavior
The program runs successfully just as it did before it was bundled, and exits without any errors
Notes
The example repo here is admittedly a bit contrived, I'm having this problem in a much larger project and essentially removed as much of it as I could while still being able to reproduce the error. This has been an issue for at least the last few versions of deno, and the same thing happens when using the
deno compile
command. I've also tried this (in the larger project) on Ubuntu (running on WSL) with the same results.The text was updated successfully, but these errors were encountered: