Module build failed: ReferenceError: Unknown plugin "transform-remove-strict-mode
See original GitHub issue报这个异常。 引用下面组件
import {ChartCard, Field, MiniArea, MiniBar, MiniProgress} from 'ant-design-pro/lib/Charts';
package.json
"devDependencies": {
"autoprefixer": "^7.2.5",
"babel": "^6.23.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-dynamic-import-webpack": "^1.0.2",
"babel-plugin-import": "^1.6.2",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"css-loader": "^0.28.7",
"draftjs-to-html": "^0.7.6",
"echarts": "^3.7.2",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.5",
"html-webpack-plugin": "^2.30.1",
"install": "^0.10.1",
"less": "^2.7.3",
"less-loader": "^4.0.5",
"moment": "^2.19.1",
"npm": "^5.5.1",
"postcss": "^6.0.14",
"qrcode.react": "^0.8.0",
"react": "^15.6.2",
"react-dom": "^15.6.2",
"react-draft-wysiwyg": "^1.10.12",
"react-quill": "^1.1.0",
"react-redux": "^5.0.6",
"react-router": "^3.2.0",
"react-scroll": "^1.7.3",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"style-loader": "^0.19.0",
"url-loader": "^0.6.2",
"webpack": "^3.10.0",
"webpack-cli": "^2.0.14",
"webpack-dev-server": "^2.9.7",
"whatwg-fetch": "^2.0.3"
},
"dependencies": {
"ant-design-pro": "^1.2.1",
"antd": "^3.0.0",
"classnames": "^2.2.5",
"es6-promise-polyfill": "^1.2.0",
"postcss-loader": "^2.0.8"
}
}
有两个工程配置都一样,另一个正常,这个报错。 node_module 删掉用 yarn 重新安装还是报错,
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Module build failed: ReferenceError: Unknown plugin "import ...
src/index.js Module build failed: ReferenceError: Unknown plugin "import" specified in "base" at 0, attempted to resolve relative to ...
Read more >关于“transform-remove-strict-mode”报错问题解决 - CSDN博客
Module build failed (from ./node_modules/babel-loader/lib/index.js): ReferenceError: Unknown plugin "transform-remove-strict-mode" specified ...
Read more >Module build failed: ReferenceError: Unknown plugin &quo
... in my localhost using this command npm run dev but I'm facing this issue Module build failed: ReferenceError: Unknown plugin transform-runtime s....
Read more >Unknown plugin "transform-remove-strict-mode"_Johnny丶me ...
Failed to compile. ./node_modules/@antv/data-set/build/data-set.js Module build failed: ReferenceError: Unknown plugin "transform-remove-strict-mode" ...
Read more >关于登录vuecli项目出现的问题:Module build failed - 简书
登录出现的错误提示:Module build failed: ReferenceError: Unknown plugin "transform-remove-strict-mode" specified in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
删除所有包 重新安装就会好的
缺少依赖 babel-preset-env 和 babel-plugin-transform-remove-strict-mode