Description
Hi,
Unfortunately I can't make a reproduction trigger the same problem as our main repo, but this repo should give an idea of our setup: https://github.com/jonasclement/volar-complex-repo
Basically:
- The root directory is a legacy, AngularJS frontend
- The "vue" directory is our new vue/vite frontend, which is the only one Volar should be affecting
Volar version: 2.0.5
VSCode version: 1.87.0
In our main repository, inside the vue
directory, any aliased import a la @/something
or @components/something.vue
gets a Cannot find module '@/something' or its corresponding type declarations. ts-plugin(2307)
.
However, saving any of the project's tsconfig.json
or jsconfig.json
files will cause these to go away until the next TS server restart, with Intellisense and type checking still working perfectly. However, syntax highlighting for components in templates is broken, as these are the color of standard HTML tags rather than the color a component would normally have.
What can we do to resolve this?