-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
ModuleBuildError: Module build failed: TypeError: Cannot read property 'scope' of undefined #105
Comments
👋 Thanks for the detailed report! |
I wonder why |
The |
Just ran into the same problem :( @irvinebroque, do you have any workaround? |
@alexeyraspopov - looks like @boopathi is working on a fix for an upcoming babel release: babel/babel#3629 |
Reopening this issue as only some related items are fixed. This needs to be fixed from babel's side and require upgradation of babel. Don't know if there is a quick workaround for this. |
This is fixed in babel. |
👋 - getting this setup with a reasonably sized production React app using Flow. All our babel versions are up-to-date.
Ran into this error, which traces back to:
https://github.com/babel/babili/blob/master/packages/babel-plugin-minify-dead-code-elimination/src/index.js#L212
Error is thrown from the entry point of the app:
Stacktrace:
.babelrc
:Possibly related to these warnings, which only appear with babili turned on:
Ran with
console.trace()
:I tried implementing each plugin one-by-one, I get a similar error for
babel-plugin-minify-constant-folding
:But with the following config (the preset minus the two plugins that cause issues), everything works well:
The text was updated successfully, but these errors were encountered: