vue init SimonZhangITer/vue-typescript-template my-project
命令创建模版
可以运行, 但是就是类名报红, 问题去查过 解决办法无非 在设置中添加
"javascript.implicitProjectConfig.experimentalDecorators": true,
"typescript.tsdk": "node_modules/typescript/lib",
或者在 tsconfig.json
experimentalDecorators": true,
都做了 重启 还是红的
配置如下
tsconfig.json 是模版本来就有的没动过