解决vue报错:Module build failed (from ./node_modules/[email protected]@eslint-loader/index.js): TypeE...

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

解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeE..._第1张图片

报错: Module build failed (from ./node_modules/[email protected]@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): TypeE..._第2张图片

这是因为eslint安装包的问题,把babel-eslint安装包的版本换成稳定版7.2.3就好了,如果删包重新下载出现其他一些问题,可能是删包不彻底,建议关闭项目手动删除node_modules文件,如果是用命令删除,需要清除缓存。
解决vue报错:Module build failed (from ./node_modules/_eslint-loader@2.2.1@eslint-loader/index.js): TypeE..._第3张图片

你可能感兴趣的:(java,vue,mysql,python,linux)