ReferenceError:插件" react.displayName"与另一个同名的人碰撞

时间:2015-12-23 03:05:14

标签: reactjs yeoman redux

我已经使用过" redux generator"从自耕农和安装的东西。

当我运行" npm start"时,项目加载但显示此日志

./js/index.js中的错误 模块构建失败:ReferenceError:插件" react.displayName"与另一个同名的人发生碰撞     在PluginManager.validate(/Users/acejordan/Projects/redcli/node_modules/babel-core/lib/transformation/file/plugin-manager.js:159:13)     在PluginManager.add(/Users/acejordan/Projects/redcli/node_modules/babel-core/lib/transformation/file/plugin-manager.js:213:10)     在File.buildTransformers(/Users/acejordan/Projects/redcli/node_modules/babel-core/lib/transformation/file/index.js:237:21)     在新文件(/Users/acejordan/Projects/redcli/node_modules/babel-core/lib/transformation/file/index.js:139:10)     在Pipeline.transform(/Users/acejordan/Projects/redcli/node_modules/babel-core/lib/transformation/pipeline.js:164:16)     在transpile(/Users/acejordan/Projects/redcli/node_modules/babel-loader/index.js:12:22)     at Object.module.exports(/Users/acejordan/Projects/redcli/node_modules/babel-loader/index.js:71:12)  @ multi main

请帮忙。感谢

1 个答案:

答案 0 :(得分:0)

见这里=> https://github.com/banderson/generator-redux/issues/35(我希望这是解决问题的地方)。