[英]Error: Cannot find module '@babel/plugin-proposal-class-properties'
Require stack:需要堆栈:
How can I fix this problem我该如何解决这个问题
You can try installing @babel/plugin-proposal-class-properties
:你可以尝试安装
@babel/plugin-proposal-class-properties
:
npm install --save @babel/plugin-proposal-class-properties
In your directory check the file containing the packages you have installed and make sure that the symbol: @ was added before the babel import.在您的目录中检查包含您已安装的软件包的文件,并确保在 babel 导入之前添加了符号: @ 。 Also, make sure the package numbers are in sync.
此外,确保 package 编号同步。
ex: "@babel/core": "^7.10.1"
例如:
"@babel/core": "^7.10.1"
Go to your terminal and type this command to install the latest version: Go 到您的终端并键入此命令以安装最新版本:
npm install --save-dev @babel/plugin-proposal-class-properties
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.