解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeError: Cannot read property 'range' of null

前端之家收集整理的这篇文章主要介绍了解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeError: Cannot read property 'range' of null前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在项目中引入动态路由时报错
写法:


报错: Module build Failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeError: Cannot read property 'range' of null


这是因为eslint安装包的问题,把babel-eslint安装包的版本换成稳定版7.2.3就好了,如果删包重新下载出现其他一些问题,可能是删包不彻底,建议关闭项目手动删除node_modules文件,如果是用命令删除,需要清除缓存。

原文链接:https://www.f2er.com/vue/997426.html

猜你在找的Vue相关文章