You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try add a ‘shims-vue.d.ts’ in src, declare module '*.vue' { import {ComponentOptions} from 'vue' const component: ComponentOptions export default component }
This will avoid the error, but i don‘t know how can i goto the real filepath by 'ctrl + click' in vscode .
all '*.vue' will goto shims-vue.d.ts. emmm... Is there anything else i need to set?
Describe the bug
IDE Visual Studio Code reports TS2307: Cannot find module error for Vue components imports. Imports are higlighted in red.
Reproduction
https://github.com/NotCoderJack/vite-template-ts
create-vite-appwith commandyarn create vite-app project-name --template vue-tsSystem Info
viteversion: 1.0.0-rc.8vueversion (fromyarn.lockorpackage-lock.json): 3.0.2@vue/compiler-sfcversion: 3.0.2Logs (Optional if provided reproduction)
no logs
The text was updated successfully, but these errors were encountered: