请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

引入import { Input } from 'antd';控制台报错

bundle.js:125799 Uncaught Error: Module build failed: ReferenceError: Unknown plugin "transform-object-assign" specified in "f:\\muke-react\\node_modules\\react-slick\\.babelrc" at 0, attempted to resolve relative to "f:\\muke-react\\node_modules\\react-slick"

    at f:\muke-react\node_modules\babel-core\lib\transformation\file\options\option-manager.js:180:17

    at Array.map (native)

    at Function.normalisePlugins (f:\muke-react\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)

    at OptionManager.mergeOptions (f:\muke-react\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)

    at OptionManager.init (f:\muke-react\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)

    at File.initOptions (f:\muke-react\node_modules\babel-core\lib\transformation\file\index.js:216:65)

    at new File (f:\muke-react\node_modules\babel-core\lib\transformation\file\index.js:139:24)

    at Pipeline.transform (f:\muke-react\node_modules\babel-core\lib\transformation\pipeline.js:46:16)

    at transpile (f:\muke-react\node_modules\babel-loader\lib\index.js:46:20)

    at Object.module.exports (f:\muke-react\node_modules\babel-loader\lib\index.js:134:16)


正在回答 回答被采纳积分+3

2回答

Parry 2017-02-26 20:43:57

请截图下引用的语句和chrome控制台错误。

0 回复 有任何疑惑可以回复我~
Parry 2017-02-26 10:38:33

错误比较多,建议删除 node_modules 文件夹后重新执行 npm install 加载所有的包。

0 回复 有任何疑惑可以回复我~
  • 提问者 慕慕8998784 #1
    重新下载后还是报错,只要加上引入的语句就报错,去掉就能正常运行
    回复 有任何疑惑可以回复我~ 2017-02-26 20:07:30
  • 提问者 慕慕8998784 #2
    请问该如何解决
    回复 有任何疑惑可以回复我~ 2017-02-26 20:07:54
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信