• 报错信息:
    • Cannot find module 'babel-preset-es2015' from ....
  • 解决办法:
    • 安装最新的 Babel 编译插件:@babel/preset-env
    • 修改 babel.config.js 文件(也可创建 .babelrc 文件)
module.exports = {
  "presets": [
        '@vue/app',
        ["@babel/preset-env", { "modules": false }]],
  "plugins": [
        [
            "component",
            {
                "libraryName": "element-ui",
                "styleLibraryName": "theme-chalk"
            }
        ]
    ]
}

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-02-09
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案