构建项目时出现了错误:
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: Cannot read property 'bindings' of null
我的开发环境如下:
Node版本:8.0.0
npm版本:5.0.0
开发依赖项
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^8.0.0",
"babel-preset-env": "^1.7.0",
"webpack": "^4.17.1",
"webpack-dev-server": "^3.1.7"
}
.babelrc
预设中删除airbnb
可以解决这个问题(显然不兼容v7)。 - Greg Kgulpfile.js
中,所以很长一段时间我都没有注意到它们。 - Alexandr Kazakov