简体   繁体   English

当我执行“yarn start”时出现错误(必需的包:@babel/plugin-proposal-private-property-in-object)

[英]I get an error when I do 'yarn start'(Required package: @babel/plugin-proposal-private-property-in-object)

I get an error when I do yarn start .当我执行yarn start时出现错误。 I search that in the other relevant questions of the stack, but I did not find the solution to my problem.我在堆栈的其他相关问题中进行了搜索,但没有找到解决问题的方法。 I thinks dependencies of my package.json is correct.我认为我的 package.json 的依赖关系是正确的。

This is my error:这是我的错误:

在此处输入图像描述

As stated by the error message, it appears yarn was expecting this package as a dependency.如错误消息所述,yarn 似乎将此包视为依赖项。 So the problem may be solved by installing it with:所以问题可以通过安装它来解决:

yarn add @babel/plugin-proposal-private-property-in-object --dev && yarn

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'yarn start' 抛出 babel-eslint 错误 MacOS,我该如何解决这个错误? - 'yarn start' throws babel-eslint error MacOS, how do I fix this error? 创建React应用程序时,Babel出现npm start(或纱线启动)错误 - npm start (or yarn start) error with babel when creating react applications 我应该在我的 package.json 文件中放入什么来让“纱线开始”工作? - What do I put in my package.json file to get "yarn start" to work? Node.js-我启动npm start时babel loader出现错误 - Nodejs - Getting Error in babel loader when i initiate npm start 为什么我会收到此 Babel JSON 配置错误? - Why do I get this Babel JSON config error? 使用 yarn dlx create-react-app 创建 React 应用程序后,第一次按 yarn start 启动它时,出现错误 - After creating a React app with yarn dlx create-react-app, the first time I press yarn start to start it, I get an error Babel插件 - 提议装饰器未按预期工作 - Babel plugin-proposal-decorators not working as expected Babel Standalone 无效插件 @babel/plugin-proposal-decorators - Babel Standalone Invalid plugin @babel/plugin-proposal-decorators 尝试 yarn start 时如何解决 Web 重要错误? - How can I solve web vital error when I try yarn start? npm 启动(纱线启动)错误。 找不到@babel/register - npm start (yarn start) error. cannot find @babel/register
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM