我正在制作一个节点应用程序,该应用程序的ui接口主要使用了material-ui,昨天我运行了一个npm安装程序,并尝试在使用npm start MyApp
后运行我的代码,但是下面出现了此错误。 / p>
Module not found: Can't resolve '@babel/runtime/helpers/builtin/classCallCheck' in 'C:\Web Applications Course\MyApp\myApp\node_modules\material-ui\node_modules\react-event-listener\dist'
我已经在github和该平台上进行了一系列研究,获得的大多数解决方案是:
尽管他们都没有奏效,但我已为该错误投入了20多个小时,请提供任何帮助。
这是我的 package.json 文件:
{
"name": "talk",
"version": "0.1.0",
"private": true,
"dependencies": {
"dotenv": "^6.0.0",
"express": "^4.16.3",
"jquery": "^3.3.1",
"lodash": "^4.17.10",
"material-ui": "^0.20.1",
"moment": "^2.22.2",
"overlayscrollbars": "^1.5.0",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-event-listener": "^0.5.3",
"react-scripts": "1.1.4",
"socket.io": "^2.1.1",
"socket.io-client": "^2.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}