如何正确运行巨型React巨型React-React Redux Material BootStrap管理模板?

时间:2018-11-07 22:53:53

标签: javascript html css reactjs

我正在运行linux,并且正在尝试通过cd将模板的演示版运行到源目录,然后运行yarn start(根据文档)。

我遇到以下错误,请帮忙!

ERROR in ./src/containers/App.js
Module not found: Error: Can't resolve 'material-ui-pickers/utils/MuiPickersUtilsProvider' in '/home/dd/Desktop/source/src/containers'
 @ ./src/containers/App.js 39:31-91
 @ ./src/MainApp.js
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server babel-polyfill webpack/hot/only-dev-server react-hot-loader/patch ./index.js

ERROR in ./src/containers/App.js
Module not found: Error: Can't resolve 'material-ui-pickers/utils/moment-utils' in '/home/dd/Desktop/source/src/containers'
 @ ./src/containers/App.js 35:19-68
 @ ./src/MainApp.js
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server babel-polyfill webpack/hot/only-dev-server react-hot-loader/patch ./index.js

ERROR in ./src/util/RTL.js
Module not found: Error: Can't resolve 'react-jss/lib/JssProvider' in '/home/dd/Desktop/source/src/util'
 @ ./src/util/RTL.js 17:19-55
 @ ./src/containers/App.js
 @ ./src/MainApp.js
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server babel-polyfill webpack/hot/only-dev-server react-hot-loader/patch ./index.js

1 个答案:

答案 0 :(得分:-1)

您应该首先尝试access.log安装相关的依赖项,然后仅运行yarn install