-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
TypeError: Cannot read property 'bindings' of null #3937
Comments
I'm running in to the same issue related to |
After doing some digging (and reading this issue thread over on the Babel repository babel/babel#7627), it appears that this error is caused by a miss-match in Babel version (v6 vs v7). I was able to solve the issue with the following changes: package.json:
.babel.rc: delete this file babel.config.js
(all this was done using Vue CLI v3.0.0-rc.12 and Storybook CLI 4.0.0-alpha.16) pro tip: if you don't see any change in behaviour, try deleting your node_modules as well as package-lock.json file before running |
@morficus do you mind sharing your package.json, your babel.config.js, and any other relevant configuration files? Removing babel-core bridge gives me the following error: Which I assume has to do with storybook using babel 6 |
@tamara-bain Here is my package.json file (I recently moved up to using Babel 7 RC1 and Vue CLI 3 [official release])
(I have moment.js in there because of a strange dependency bug with one of the Storybook ad-ons...) edit:
|
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@morficus Your solution was dead on for my use case (which was identical to yours in that I had generated a project via vue-cli@3). Thank you! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
How to fix this file? { I show this error when I run expo cli: The development server returned response error code: 500 URL: 192.168.56.1:19001/node_modules/expo/… Body: {"type":"TransformError","lineNumber":0,"errors":[{"description":"C:\Repos\mstore-3.6.4\mstore-expo\App.js: Cannot read property 'bindings' of null","lineNumber":0}],"name":"SyntaxError","message":"C:\Repos\mstore-3.6.4\mstore-expo\App.js App.js /** @Format */ import React from "react"; function cacheImages(images) { function cacheFonts(fonts) { export default class App extends React.Component { componentDidMount() { loadAssets = async () => {
}; render() {
} |
show error on this page: error: C:\Repos\mstore-3.6.4\mstore-expo\node_modules\expo\build\environment\logging.js: Cannot read property 'bindings' of null logging.js import { Constants } from 'expo-constants'; |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
After I installed storybook into a VueJS project that was created with the VueCli, whenever I try and run my Vue project with "yarn serve" I get the following error:
TypeError: Cannot read property 'bindings' of null
The project no longer works.
The full error message is:
`Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: Cannot read property 'bindings' of null
at Scope.moveBindingTo (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/scope/index.js:978:13)
at BlockScoping.updateScopeInfo (/vagrant/Apps/Conv Wizard/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
at BlockScoping.run (/vagrant/Apps/Conv Wizard/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
at PluginPass.BlockStatementSwitchStatementProgram (/vagrant/Apps/Conv Wizard/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
at newFn (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/visitors.js:237:21)
at NodePath._call (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/path/context.js:65:20)
at NodePath.call (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/path/context.js:100:12)
at TraversalContext.visitQueue (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/context.js:142:16)
at TraversalContext.visitSingle (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/context.js:102:19)
at TraversalContext.visit (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/context.js:182:19)
at Function.traverse.node (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/index.js:106:17)
at traverse (/vagrant/Apps/Conv Wizard/node_modules/@babel/traverse/lib/index.js:76:12)
at transformFile (/vagrant/Apps/Conv Wizard/node_modules/@babel/core/lib/transformation/index.js:116:29)
at runSync (/vagrant/Apps/Conv Wizard/node_modules/@babel/core/lib/transformation/index.js:45:3)
at runAsync (/vagrant/Apps/Conv Wizard/node_modules/@babel/core/lib/transformation/index.js:35:14)
@ multi (webpack)-dev-server/client?http://10.0.2.15:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.tss`
Steps to reproduce
Use the latest VueCli to create a project with Typescript support.
Install storybook via the cli. Note, I had to create a custom webpack.config.js file to get around a VueLoader error:
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = (baseConfig, env, defaultConfig) => {
defaultConfig.plugins.push(new VueLoaderPlugin());
return defaultConfig;
};
Attempt to start the server. You should get the error above.
Please specify which version of Storybook and optionally any affected addons that you're running
Latest version of Storybook.
Package.json is as follows:
{
"name": "moveit",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.0",
"@fortawesome/free-solid-svg-icons": "^5.1.0",
"@fortawesome/pro-light-svg-icons": "^5.1.0",
"@fortawesome/vue-fontawesome": "^0.1.0",
"axios": "^0.18.0",
"v-tooltip": "^2.0.0-rc.33",
"vue": "^2.5.16",
"vue-multiselect": "^2.1.0",
"vue-router": "^3.0.1",
"vuex": "^3.0.1",
"vuex-persist": "^1.4.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
"@vue/cli-plugin-typescript": "^3.0.0-beta.15",
"@vue/cli-service": "^3.0.0-beta.15",
"node-sass": "^4.9.0",
"sass-loader": "^7.0.3",
"vue-class-component": "^6.0.0",
"vue-property-decorator": "^7.0.0",
"vue-template-compiler": "^2.5.16"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
The text was updated successfully, but these errors were encountered: