- 导入element-ui报错Cannot find module
- Vue Cannot find module ‘node-sas
- 如何解决Cordova报错: Cannot find modul
- Module build failed: Error: Cann
- 编译报错:Error: Cannot find module '
- eslint prettier 不同格式
- ionic3 Cordova Cannot find modul
- 使用vue-cli 生成的webpack 项目,使用scss引入
- vue-cli@3.0使用vue-cli-plugin-cube
- ReactNative 新建项目,run后报错cannot fi
报错信息
Cannot find module 'babel-preset-es2015'
plugins[0][1] must be an object, false, or undefined
解决方案
修改babel.config.js
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
["@babel/preset-env", { "modules": false }]
],
plugins: [["component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]]
}
网友评论