找不到插件“proposal-class-properties”。如何解决这个问题?

Sau*_*pte 11 npm reactjs yarnpkg

目前,我正在研究 React 项目。它工作正常。但是现在每当我启动 npm 时。它给了我错误 -

$ react-scripts start
i ?wds?: Project is running at http://192.168.18.45/
i ?wds?: webpack output is served from
i ?wds?: Content not from webpack is served from C:\xampp\htdocs\SkyHi\Staah\staah-instant-site\public
i ?wds?: 404s will fallback to /
Starting the development server...
Failed to compile.

./node_modules/@fortawesome/fontawesome-svg-core/index.es.js
Error: [BABEL] C:\xampp\htdocs\SkyHi\Staah\staah-instant-site\node_modules\@fortawesome\fontawesome-svg-core\index.es.js: Could not find plugin "proposal-class-properties". Ensure there is an entry in ./available-plugins.js for it. (While processing: "C:\\xampp\\htdocs\\SkyHi\\Staah\\staah-instant-site\\node_modules\\babel-preset-react-app\\dependencies.js$0")
    at Array.map (<anonymous>)
    at Generator.next (<anonymous>)
    at Generator.next (<anonymous>)
Run Code Online (Sandbox Code Playgroud)

如何解决这个错误?请帮帮我。我正在使用yarn.

先感谢您。

小智 22

在 package.json 中添加“分辨率”:{“@babel/preset-env”:“7.5.5”}?

运行 npx npm-force-resolutions

运行 npm install 还是 yarn?

来自找不到插件“提案数字分隔符”的回答