Module build failed (from ./node_modules/[email protected]@eslint-loader/index.js): TypeError: Cannot read property 'range' of null

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

写法:

报错: Module build failed (from ./node_modules/[email protected]@eslint-loader/index.js): TypeError: Cannot read property 'range' of null

这是因为eslint安装包的问题,把babel-eslint安装包的版本换成稳定版7.2.3就好了

猜你喜欢

转载自www.cnblogs.com/steamed-twisted-roll/p/12731997.html