在vue的项目里面,经常看到any类型的报错,真的很烦的
在tsconfig.json中配置以下参数
"noImplicitAny": false 就可以了
出现类型"never"上不存在属性"userName"。ts-plugin(2339) 配置该参数
modeuleResolution : node
javascript
"compilerOptions": {
"noImplicitAny": false,
"moduleResolution": "node",
}

然后保存即可