-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
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
Cannot find module *.vue
or its corresponding type declarations when components live in hidden directories
#3349
Comments
Any updates? |
Same problem here jumping from 1.8.1 to 1.8.5 (I didn't check versions between them) |
This is a duplicate of #3328 As should be clear from the linked issue you can explicitly state which vue files to process by adding
or something more generic. |
It's true, I was having similar configuration, but for one folder in another place it was missing to include manually. |
Duplicate of #3328 |
And should be fixed by #3450 |
volar 1.82.7 is not fix it. |
helpful, it has solve the problem, |
I'm having this weird issue with the standard
It should find App.vue, I verified with |
Summary
Encountered
Cannot find module './C2.vue' or its corresponding type declarations.
issue when opening a component that lives in a hidden directory (with.
prefixed) in Visual Studio Code with Volar with the following behaviors:vue-tsc --noEmit
with no errors..
prefixed) directories are fine, such assrc
,dot
.Such issue was initially appeared when I was developing some extension components for my VitePress site and the components was lived in
.vitepress
directory.Reproduction
GitHub Reproduction Repo: https://github.com/nekomeowww/reproduction_volar_cannot_find_vue_module
Stackblitz Reproduction: https://stackblitz.com/github/nekomeowww/reproduction_volar_cannot_find_vue_module
Already done troubleshooting
"Cannot find module" "vue"
with no luck.shims.d.ts
fordeclare module '*.vue'
statement:tsconfig.json
with**/*.d.ts, **/*.vue
with no luck.tsconfig.json
from either antfu/vitesse and vuejs/vitepress with no luck.@builtin typescript
JavaScript and TypeScript language feature extension within VSCode with no luck.Envs and Confs
Extensions
Extensions
Runtime and package manager
Dependencies
package.json
:tsconfig.json
:The text was updated successfully, but these errors were encountered: