使用Element UI报错

1、Cannot find module ‘babel-preset-es2015‘

配置.babelrc之后,npm run serve无法启动

"presets": [["es2015", { "modules": false }]],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]

把 es2015 改成 @babel/preset-env

 "presets": [["@babel/preset-env", { "modules": false }]],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]

 

使用Element UI报错

上一篇:Arcgis地理处理工具案例教程——批量提取多个栅格的范围边界矢量


下一篇:【题解】CF1463F Max Correct Set