Reactjs 找不到插件";“提案类属性”;。如何解决这个问题?

Reactjs 找不到插件";“提案类属性”;。如何解决这个问题?,reactjs,npm,yarnpkg,Reactjs,Npm,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-sit

目前,我正在从事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>)
$react脚本启动
i:wds:项目正在运行中http://192.168.18.45/
i「wds」:网页包输出由
i「wds」:非来自网页的内容由C:\xampp\htdocs\SkyHi\Staah\Staah instant site\public提供
i「wds:404将退回到/
正在启动开发服务器。。。
未能编译。
./node_modules/@fortawesome/fontawesome svg core/index.es.js
错误:[BABEL]C:\xampp\htdocs\SkyHi\Staah\Staah即时站点\node_modules\@fortwome\fontwome svg core\index.es.js:找不到插件“提案类属性”。确保在./available-plugins.js中有相应的条目。(处理时:“C:\\xampp\\htdocs\\SkyHi\\Staah\\Staah instant site\\node\U modules\\babel preset react app\\dependencies.js$0”)
在Array.map()处
在Generator.next()处
在Generator.next()处
如何解决这个错误?请帮帮我。我正在使用
纱线

提前感谢。

在package.json中添加“决议”:{“@babel/preset env”:“7.5.5”}

运行npx npm部队决议

运行npm安装或纱线


您的package.json是否包含@babel/plugin提案类属性?是的。它就在那里。暂时的。我已卸载node_模块目录并重新安装。但我认为这不是解决这个问题的正确方法。他们可能是解决这个问题的正确方法。希望这篇文章能帮助人们从花时间寻找解决方案。希望有人能正确回答。同样的问题在这里,尝试了一切,但没有解决办法。(即使移除节点_模块也无法解决问题)