vite ts vue 项目提示 . Projects must list all files or use an include pattern.
在引用一个 ts
的时候,提示如下:
需要在 tsconfig.node.json
文件中添加:
{"compilerOptions": {"composite": true,"skipLibCheck": true,"module": "ESNext","moduleResolution": "bundler","allowSyntheticDefaultImports": true},"include": ["vite.config.ts", "src/*.ts"]
}
然后重启下编辑器,它就显示正常了。