Vue project startup error
The string type is simply inferred from the string literal, removing type annotations. eslint @ typescript-eslint / no-inferrable-types
The compiler thinks that it has been inferred to be a string type, so there is no need to write
solution
Modify .eslintrc.js
it to add:
rules: {
"@typescript-eslint/no-inferrable-types": "off" // 关闭类型推断
}