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
Crash caused by newly released babel-transform@66.23.0 #5305
Comments
Hey @nickpalmer! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Thanks for the report, we're looking into it now |
Same issue with our build. If we can provide any additional information to help debug just let me know. |
From #5050, need to investigate. We will just rollback immediately with a patch and then figure out the issue. Yeah just need a code snippet + babelrc config to repro |
babelrc:
No specific code triggers it-- it throws on every file when the unit tests are run. |
We're reverting now. |
I think it is a mismatch with our older version of babel-core. |
I've reverted the PR and published 6.23.1 of |
Thanks everyone for the reports! Like mentioned ^, please update core/traverse We'll setup better infrastructure to prevent this kind of incompatible change in the future (our issue due to being a monorepo) |
Sorry for this breaking PR. It passed the test when I finished it, but its been a little while. Will look into it now, really sorry for breaking the repo.. |
@yongxu you didn't break anything! we just missed categorizing it as a breaking change, so we'll revisit landing it asap. |
Closing now since issue has been fixed (wanted to leave it up for a while so no one needed to make a duplicate issue) |
thank you for letting me know @existentialism! The |
@loganfsmyth @hzoo Is there any plan for merge this back or is there any update I should work on? Please let me know if there is anything I should do :) |
Version 6.23.0 of babel-transform causes babel-plugin-transform-es2015-destructuring to crash while compiling our app.
Pinning to babel-tranform@6.22.1 removes the crash.
If I console.log(this.hub) in babel-transform I see that this.hub is an empty object. This should be trivial to reproduce in any app that uses destructuring..
TypeError: /Users/nick/git/app/src/server/server.js: this.hub.addHelper is not a function
at Scope.toArray (/Users/nick/git/app/frontend/node_modules/babel-traverse/lib/scope/index.js:463:38)
at DestructuringTransformer.toArray (/Users/nick/git/app/frontend/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js:122:27)
at DestructuringTransformer.pushArrayPattern (/Users/nick/git/app/frontend/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js:277:26)
at DestructuringTransformer.push (/Users/nick/git/app/frontend/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js:110:14)
at DestructuringTransformer.init (/Users/nick/git/app/frontend/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js:317:12)
at PluginPass.VariableDeclaration (/Users/nick/git/app/frontend/node_modules/babel-plugin-transform-es2015-destructuring/lib/index.js:468:27)
at newFn (/Users/nick/git/app/frontend/node_modules/babel-traverse/lib/visitors.js:276:21)
at NodePath._call (/Users/nick/git/app/frontend/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/nick/git/app/frontend/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/Users/nick/git/app/frontend/node_modules/babel-traverse/lib/path/context.js:105:12)
The text was updated successfully, but these errors were encountered: