BABEL_TRANSFORM_ERROR - babel traverse context - cannot read property "removeBinding" of null
See original GitHub issueBug Report
EDIT by @nicolo-ribaudo
You can workaround this bug by making sure that @babel/core
uses an older @babel/traverse
version.
If you are using yarn
you can specify "@babel/traverse": "7.12.0"
in resolutions
, otherwise you can try downgrading it as described by https://github.com/babel/babel/issues/12383#issuecomment-732049261.
https://github.com/babel/babel/pull/12331 after this pr
“This is technically a breaking change (we are changing the default value of a parameter in the public API), but I couldn’t find anyone online using that parameter and I’m not sure why anyway would not wont it to use the correct context.”
is there anyone that do code review, here @babel ?
What do you think about semver?
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (10 by maintainers)
Top Results From Across the Web
Upgrade to Babel 7: Cannot read property 'bindings' of null
In your .babelrc file, change { "presets": ["env"] }. to { "presets": ["@babel/preset-env"] }. (and install that package if you haven't ...
Read more >[solved] ECMAScript / Babel Error with 1.6.1 - Meteor forums
So I followed ben's post pretty closely but I can't get it to work ... Babel Error with 1.6.1: Cannot read property 'bindings'...
Read more >Babel v7 error: "Cannot read property 'bindings' of null"
Hi there! I'm Arisa, a freelance Full Stack Developer living in Germany I'm developing Lilac, an...
Read more >cannot read property of null (reading 'children') react native
Cannot read property string of null in react native ... Native/HuberApp/nodemodules/@babel/traverse/lib/path/context.js:65:20) at NodePath.call ...
Read more >! Need help ! Vue JS app and unit test conflicting each other ...
Our application requires below configuration in babel.rc file in order ... _call (node_modules/@babel/traverse/lib/path/context.js:53:20) at ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll open a PR today, hoping for a patch release today.
@w3nda You can try https://github.com/babel/babel/issues/12383#issuecomment-732049261, which is a generic workaround and not specific to
babel-minify
.I think
babel-plugin-minify-simplify
is triggering this error (whether the fault is with the plugin or babel itself I don’t know). It can be seen when minifying bowser v1.9.4 for example.To reproduce:
node.js LTS v14.15.1
withnpm version 6.14.8
, set up a clean node project.npm install --save-dev @babel/cli @babel/core babel-preset-minify bowser@1.9.4
npx babel --presets=babel-preset-minify node_modules/bowser/bowser.js