vue项目运行时报错Cannot read property 'range' of null
项目中有安装babel-eslint的将版本降到7.2.3
没有安装babel-eslint直接yarn add babel-eslint@7.2.3
然后再运行项目就好了
或者:
.eslintrc 配置文件加上:
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
},
parser: 'babel-eslint',
},
rules : {
"template-curly-spacing" : "off",
"indent": ["error", 4, {
"ignoredNodes": ["TemplateLiteral"]
}]
}