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

Module not found: Error: Cannot resolve module 'antd/component/button/style' in /cms/app/components #59

Closed
OhCoder opened this issue Aug 29, 2016 · 2 comments

Comments

@OhCoder
Copy link

OhCoder commented Aug 29, 2016

import {Button} from 'antd'

直接引用错误,提示:
ERROR in ./app/components/App.jsx
Module not found: Error: Cannot resolve module 'antd/component/button/style' in /Users/xxxx/Documents/cms/app/components
@ ./app/components/App.jsx 7:13-51

ERROR in ./app/components/App.jsx
Module not found: Error: Cannot resolve module 'antd/component/button' in /Users/xxxx/Documents/cms/app/components
@ ./app/components/App.jsx 9:14-46

用了webpack 配置alias,不知道跟这个有没有关……

@sorrycc
Copy link
Member

sorrycc commented Aug 29, 2016

应该有关。

@OhCoder
Copy link
Author

OhCoder commented Aug 30, 2016

装了less和less-loader解决了

@OhCoder OhCoder closed this as completed Aug 30, 2016
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

2 participants