【问题标题】:Radium error - Unknown plugin "flow-comments"镭错误 - 未知插件“流评论”
【发布时间】:2015-10-02 07:46:08
【问题描述】:

在 reactjs 中使用镭时出现以下错误。有人有这个问题的解决方案吗?

镭版本:v0.14.1 反应版本: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

【问题讨论】:

    标签: javascript reactjs webpack


    【解决方案1】:

    我遇到了同样的错误。只需尝试安装 flow-cmets。

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

    【讨论】:

      猜你喜欢
      • 2012-03-06
      • 1970-01-01
      • 1970-01-01
      • 2012-10-23
      • 2013-08-25
      • 1970-01-01
      • 1970-01-01
      • 2011-12-18
      • 2012-10-11
      相关资源
      最近更新 更多