1.Module build failed: ReferenceError: Unknown plugin “import” specified in “C:\bxn\WYwap\.babelrc” at 2, attempted to resolve relative to “C:\bxn\WYwap”
原因: 缺少插件babel-plugin-import
解决方案:
npm install babel-plugin-import --save-dev
2、Module build failed: ReferenceError: Unknown plugin “component” specified in “/home/jenkins/workspace/test-xt-pl-user-web/.babelrc” at 2, attempted to resolve relative to “/home/jenkins/workspace/test-xt-pl-user-web”
原因:缺少插件babel-plugin-component
解决方案:
npm install babel-plugin-component --save-dev