up2u记账项目总结

问题一: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
喜欢就支持一下吧
点赞0 分享