Closed rjl-cli closed 1 year ago
{ "extends": "@vue/tsconfig/tsconfig.web.json", "include": ["types/env.d.ts", "src//*", "src/*/.vue", "src//.tsx"], "compilerOptions": { "ignoreDeprecations": "5.0", "allowSyntheticDefaultImports": false, "module": "ESNext", "types": ["@types/node", "vite/client"], "typeRoots": ["./node_modules/@types/", "./types/"], "baseUrl": ".", "paths": { "@/": ["./src/*"] } },
"references": [ { "path": "./tsconfig.node.json" } ] } 中@vue/tsconfig/tsconfig.web.json 有 "importsNotUsedAsValues": "error" 和这和插件不兼容 启动会
这个属性在typescipt5已经被标记为弃用了,可以尝试覆盖关闭
{ "extends": "@vue/tsconfig/tsconfig.web.json", "include": ["types/env.d.ts", "src//*", "src/*/.vue", "src//.tsx"], "compilerOptions": { "ignoreDeprecations": "5.0", "allowSyntheticDefaultImports": false, "module": "ESNext", "types": ["@types/node", "vite/client"], "typeRoots": ["./node_modules/@types/", "./types/"], "baseUrl": ".", "paths": { "@/": ["./src/*"] } },
"references": [ { "path": "./tsconfig.node.json" } ] } 中@vue/tsconfig/tsconfig.web.json 有 "importsNotUsedAsValues": "error" 和这和插件不兼容 启动会