镭错误 - 未知插件"流量评论"

时间:2015-10-02 07:46:09

标签: javascript reactjs webpack

使用带有reactjs的radium时出现以下错误。有没有人得到这个问题的解决方案?

镭Verion:v0.14.1 React版本:v0.13.3

ERROR in ./~/radium/lib/index.js
Module build failed: ReferenceError: Unknown plugin "flow-comments"
    at PluginManager.subnormaliseString (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/plugin-manager.js:147:13)
    at PluginManager.add (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/plugin-manager.js:190:40)
    at File.buildTransformers (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/index.js:237:21)
    at new File (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/file/index.js:139:10)
    at Pipeline.transform (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
    at transpile (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-loader/index.js:12:22)
    at Object.module.exports (/home/iswan/os-projects/praxis-samples/03-forms/node_modules/babel-loader/index.js:69:12)
 @ ./~/praxis/src/ui/Input.jsx 19:14-31

1 个答案:

答案 0 :(得分:3)

我有同样的错误。只是尝试安装flow-comments。

npm install babel-plugin-flow-comments --save