View Code? Open in Web Editor
NEW
a blog based on of react,webpack3,dva,redux,material-ui,fetch,generator,markdown,nodejs,koa2,mongoose,docker,shell,and async/await 基于react+koa2技术栈的个人开源博客系统
Home Page: http://sinn.boyagirl.com
JavaScript 85.35%
CSS 12.11%
Shell 1.97%
HTML 0.57%
sinn's People
sinn's Issues
想学习本项目,但是npm run dev 报错:
ERROR Failed to compile with 10 errors 22:13:49
These dependencies were not found:
material-ui/svg-icons/Action/favorite in ./src/components/layout/AppHead.js
material-ui/svg-icons/Communication/chat-bubble-outline in ./src/components/IndexPage/ContentPage.js
material-ui/svg-icons/Communication/textsms in ./src/components/IndexPage/Recoment.js
material-ui/svg-icons/Content/create in ./src/containers/app.js
material-ui/svg-icons/Navigation/more-vert in ./src/components/layout/AppHead.js
material-ui/svg-icons/Navigation/refresh in ./src/components/layout/AppHead.js
material-ui/svg-icons/Social/person in ./src/containers/UserPage/LoginPage.js, ./src/containers/UserPage/RegisterPage.js
material-ui/svg-icons/Social/person-add in ./src/components/layout/AppHead.js
还有这个错:对比其它没错的模块,看不出问题
ERROR in ./src/containers/exports.js
Module not found: Error: Can't resolve './IndexPage/index' in '/home/jacky/文档/test/Koa2/sinn/src/containers'
@ ./src/containers/exports.js 2:0-42
@ ./src/router.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8000 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8000 webpack/hot/only-dev-server ./src/index.js
能帮解答吗?谢谢!
我是用dva-cli创建项目,然后项目目录结构是这样的。
并没有你项目中的webpack.config.js文件。
我使用npm run build之后,把打包的dist文件夹下的文件放在nodejs服务上面,再访问的时候,antdesign的样式就丢失了。
请问楼主遇到我这样的问题了吗,如果要增加webpack.config.js文件,我该怎么编写这个文件(我把楼主的webpack.config.js文件增加到我的项目以后会报错)