Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问materail-Ui的问题 #3

Open
xyjackxjw opened this issue Mar 25, 2018 · 2 comments
Open

请问materail-Ui的问题 #3

xyjackxjw opened this issue Mar 25, 2018 · 2 comments

Comments

@xyjackxjw
Copy link

想学习本项目,但是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

能帮解答吗?谢谢!

@xyjackxjw
Copy link
Author

模块没找到,是原文中的大小写问题,部分material ui 不能用,没搞懂,有的就可以用,不能用的在node-modules里也都有。。。。

@xyjackxjw
Copy link
Author

老大,看来你是故意逼我们认真学习咯,部分material ui 不能用的原因还是大小写的问题,import的时候action故意写成Action。

文章写的真好,sinn和sinn server 两个例子也包括很多内容,非常感谢!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant