-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[TreeShake] Reference error $<NUMBER>$exports is not defined if "--experimental-scope-hoisting" flag is used #1552
Comments
Thanks! Could you give us the full output or the file responsible for the bug? You can use |
You may convert it back to js. |
If you need a full app you can run that appears to have the same issue see here: HenrikJoreteg/redux-bundler-example#1 |
@fathyb @devongovett Any update on this? |
I'd love to get this sorted out as well so I can turn on this awesomeness in my app :) |
@HenrikJoreteg your issue is different, #1683 fixes it |
@sujith97 Could you please provide some source code? |
Closing. I tested using @HenrikJoreteg's app, and it appears to be working. |
🐛 bug report
Browser complains about the undefined variable
$<NUMBER>$exports
which looks like the bundled output here.🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
It should build and have no issues as when I use parcel build without the tree shaking flag.
😯 Current Behavior
Builds fine but browser complains:
Uncaught ReferenceError: $37$exports is not defined
💁 Possible Solution
Needs research.
🔦 Context
Just the usual parcel production build:
💻 Code Sample
N/A
🌍 Your Environment
The text was updated successfully, but these errors were encountered: