【发布时间】:2020-07-01 23:23:14
【问题描述】:
如何修复Could not find plugin "proposal-numeric-separator",当我尝试构建我的 React 应用程序时收到此错误,我还没有弹出应用程序:
./src/index.js
Error: [BABEL] /home/pc/Downloads/project/src/index.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/home/pc/Downloads/project/node_modules/babel-preset-react-app/index.js$0")
at Array.map (<anonymous>)
at Generator.next (<anonymous>)
at Generator.next (<anonymous>)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
我已经尝试下载 Babel 和依赖 Proposal Numeric Separator,删除节点模块,清理 Yarn 缓存;但没有任何效果。
我正在使用 Yarn 1.22.4 和 Node 13.11.0,但我也尝试过使用 NPM 6.13.7。
【问题讨论】:
-
我遇到了同样的问题。 +1
-
其他人也有同样的问题:reddit.com/r/angular/comments/flymj5/build_failing_please_help 建议的解决方案对我不起作用。