TypeError: Cannot read property 'bindings' of null
See original GitHub issueBug Report
Describe the bug
After installing docz
, I tried to give a go with the following command:
$ docz dev
and I got the following error:
error in ./.docz/app/index.jsx
Module build failed (from ./node_modules/happypack/loader.js):
TypeError: Cannot read property 'bindings' of null
at Scope.moveBindingTo (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/scope/index.js:869:13)
at convertBlockScopedToVar (/***/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:139:13)
at PluginPass.VariableDeclaration (/***/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:26:9)
at newFn (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/visitors.js:193:21)
at NodePath._call (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/path/context.js:88:12)
at TraversalContext.visitQueue (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/context.js:118:16)
at TraversalContext.visitMultiple (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/context.js:85:17)
at TraversalContext.visit (/***/node_modules/docz-core/node_modules/@babel/traverse/lib/context.js:144:19)
@ multi ./node_modules/babel-polyfill/lib/index.js ./.docz/app/index.jsx
Enviroment
- OS: [e.g. OSX 10.13.4, Windows 10] Windows 10 and WSL Ubuntu.
- Node/npm version: [e.g. Node 8/npm 5] v10.3.0 / 6.1.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Upgrade to Babel 7: Cannot read property 'bindings' of null
TypeError : Cannot read property 'bindings' of null at Scope.moveBindingTo (/xyz/node_modules/@babel/traverse/lib/scope/index.js:867:13) at ...
Read more >Cannot read property 'bindings' of null · Issue #8908
I've set the babel core and preset-env to be the exact same version. How do i fix this issue? webpack.config.js. const path =...
Read more >Babel v7 error: "Cannot read property 'bindings' of null"
TypeError : Cannot read property 'bindings' of null ... me that all the tests were failing because of one line with null value...
Read more >如何解决Cannot read property 'bindings' of null_朱知知的博客
Cannot read property 'xxxxxx' of null 问题原因: 前面有一个空的id,我在后面给他加了id,导致无法读取属性。去掉前面空id就好了。另外又博主也发生 ...
Read more >TypeError: Cannot read property 'bindings' of null-babel.js
I was using babel-preset-react-native in dependency which has been deprecated instead "metro-react-native-babel-preset": "^0.47.0" is now being used.
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
@pedronauck thanks, although making sure im on babel7 and using this article’s libs and version numbers combinatorially with those shown here seem to result in the same error to no avail.
IMO, in a small org without a person or team dedicated to maintaining RN component documentation, this is a battle not worth fighting. I’ve tried storybookJS, docz, styleguidist, and none of them seem to work consistently, due to webpack, babel, RN versions expo versions, etc. etc. perhaps I shall just wait a bit longer for these issues to resolve over time.
docz-plugin-babel6
was deprecated @hariDasu, we don’t support older version of babel at all