手动添加的配置,2个项目OK,还个项目 运行报错
Cannot read property ‘range‘ of null TypeError: Cannot read property ‘range‘ of null at SourceCode.getTokenBefore (/Users/jason/my-project/node_modules/eslint/lib/token-store/index.js:303:17) at checkSpacingBefore (/Users/jason/my-project/node_modules/eslint/lib/rules/template-curly-spacing.js:51:42) at TemplateElement (/Users/jason/my-project/node_modules/eslint/lib/rules/template-curly-spacing.js:116:17) at listeners.(anonymous function).forEach.listener (/Users/jason/my-project/node_modules/eslint/lib/util/safe-emitter.js:47:58)
3个项目eslint的配置包都是相同版本,最后这个报错的解决方案是将
"babel-eslint": "^8.2.1", 改为 "babel-eslint": "8.0.1",
重新install后能正常跑起来了.
package.json
eslint Cannot read property 'range' of null错误( Quasar Doc )$ quasar dev 出错
原文地址:https://www.cnblogs.com/mouseleo/p/12110203.html
时间: 2024-10-12 01:35:27