在项目中引入动态路由时报错
写法:
解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeError: Cannot read property
报错: 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
这是因为eslint安装包的问题,把babel-eslint安装包的版本换成稳定版7.2.3就好了,如果删包重新下载出现其他一些问题,可能是删包不彻底,建议关闭项目手动删除node_modules文件,如果是用命令删除,需要清除缓存。
解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeError: Cannot read property