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

The plugin ["antd",{"style":"css"}] didn't export a Plugin instance #36

Closed
JJAWX opened this issue Jun 29, 2016 · 2 comments
Closed

The plugin ["antd",{"style":"css"}] didn't export a Plugin instance #36

JJAWX opened this issue Jun 29, 2016 · 2 comments

Comments

@JJAWX
Copy link

JJAWX commented Jun 29, 2016

配置如下,为什么出错呢:
.babelrc文件内容:
{
"stage": 2,
"env": {
"development": {
"plugins": [
"react-transform",
["antd",{"style":"css"}]
],
"extra": {
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
}

@Witee
Copy link

Witee commented Jun 29, 2016

Module build failed: TypeError: The plugin ["antd",{"style":"css"}] didn't export a Plugin instance

我是这个错误。你的呢

@sorrycc
Copy link
Member

sorrycc commented Jun 30, 2016

不支持 babel 5,babel 版本需要是 6。

@sorrycc sorrycc closed this as completed Jun 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

3 participants