问题一:webstorm提交代码出错
提示vue-cli-service lint found some errors
我的解决方法是在报错文件添加/* eslint-disable */
使用后成功解决了vue.config.js
中的问题
但是Icon.vue
还是存在报错,error: '__WebpackModuleApi' is not defined (no-undef)
在网上搜索到了类似的问题,Vue.js中的__webpack_public_path__
我在.eslintrc.js
>module.exports
添加globals
,成功提交代码。
module.exports = {
"globals":{
"__WebpackModuleApi":"writable"
}
}
复制代码
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END