vbenjs / vite-plugin-mock

A mock plugin for vite.use mockjs.
MIT License
626 stars 96 forks source link

"importsNotUsedAsValues": "error"不兼容 #95

Closed rjl-cli closed 1 year ago

rjl-cli commented 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" 和这和插件不兼容 启动会 image

anncwb commented 1 year ago

这个属性在typescipt5已经被标记为弃用了,可以尝试覆盖关闭