We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 vitejs 的 vue-ts 模板初始化一个项目后,可以正常运行,就是在 main.ts 中有一个语法提示错误:Cannot find module './App.vue' or its corresponding type declarations.ts(2307)
Cannot find module './App.vue' or its corresponding type declarations.ts(2307)
参考这个issue和代码,添加 shims-vue.d.ts,错误提示就消失了,这个是什么机制?
declare module '*.vue' { import { ComponentOptions } from 'vue' const component: ComponentOptions export default component }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用 vitejs 的 vue-ts 模板初始化一个项目后,可以正常运行,就是在 main.ts 中有一个语法提示错误:
Cannot find module './App.vue' or its corresponding type declarations.ts(2307)
参考这个issue和代码,添加 shims-vue.d.ts,错误提示就消失了,这个是什么机制?
The text was updated successfully, but these errors were encountered: