【发布时间】:2021-07-24 18:27:19
【问题描述】:
我全新安装了 nuxt 版本 2.14.6,我想消除运行 nuxt 命令时出现的错误:
WARN Though the "loose" option was set to "false" in your @babel/preset-env co
The "loose" option must be the same for @babel/plugin-proposal-class-properties,
["@babel/plugin-proposal-private-methods", { "loose": true }]
to the "plugins" section of your Babel config.
我假设我需要覆盖我的 nuxt.config.js 文件中的 babel 配置,但我没有找到任何有用的解决方案。
【问题讨论】: