启动项目显示如下错误
Failed to compile.
./src/theme/recss.css
Module build failed:
Class constructor FileManager cannot be invoked without 'new'
in undefined (line undefined, column undefined)
解决方法:
- 把 package.json 的 devDependencies 依赖 less 版本锁定在 3.9.0 即可。 issues
- 删除 node_modules,重新
npm install
},
"eslintConfig": {
"extends": "react-app"
},
"devDependencies": {
"axios": "^0.18.0",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-preset-react-native-stage-0": "^1.0.1",
"babel-preset-stage-2": "^6.24.1",
"classnames": "^2.2.6",
---"less": "^3.8.1",
+++"less": "3.9.0",
"less-loader": "^4.1.0"
}
}








网友评论