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

使用antd preset出错: antd/lib/index.js.Affix. #6

Closed
teamrun opened this issue Mar 17, 2016 · 2 comments
Closed

使用antd preset出错: antd/lib/index.js.Affix. #6

teamrun opened this issue Mar 17, 2016 · 2 comments

Comments

@teamrun
Copy link

teamrun commented Mar 17, 2016

ERROR in ./src/index.js
Module build failed: ReferenceError: [BABEL] /Users/chenllos/dev/souche/dfc-MiToAdmin/src/index.js: 
Unknown option: /Users/chenllos/dev/souche/dfc-MiToAdmin/node_modules/antd/lib/index.js.Affix. 
Check out http://babeljs.io/docs/usage/options/ for more info

是因为安装的是编译过后的antd, 导致插件不能按es6的import模式解析antd的所有组件吗?

@sorrycc
Copy link
Member

sorrycc commented Mar 18, 2016

没看明白出错原因,请提供下重现步骤。

@teamrun
Copy link
Author

teamrun commented Mar 18, 2016

sorrt是我搞错了, 把plugin的配置搞到presets里面去了.

没有问题了~

@teamrun teamrun closed this as completed Mar 18, 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