在vite的时候总会自动引用自己编写的*.vue文件,然后提示:找不到模块....
问题在的答案在于配置,解决方案就是把vs code中的ts自带配置给关喽!
- Run
Extensions: Show Built-in Extensions(查看 -> 命令面板) from VS Code's command palette, look forTypeScript and JavaScript Language Features, then right click and selectDisable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled. - Reload the VS Code window by running
Developer: Reload Windowfrom the command palette. 以上两个两骤来源于vite vue-ts 中的readme.md文件。