question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BABEL_TRANSFORM_ERROR - babel traverse context - cannot read property "removeBinding" of null

See original GitHub issue

Bug 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?

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
nicolo-ribaudocommented, Nov 23, 2020

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.

4reactions
ehoogeveencommented, Nov 23, 2020

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:

  1. Using node.js LTS v14.15.1 with npm version 6.14.8, set up a clean node project.
  2. Run npm install --save-dev @babel/cli @babel/core babel-preset-minify bowser@1.9.4
  3. Run npx babel --presets=babel-preset-minify node_modules/bowser/bowser.js
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found