Using a composite TypeScript config #4477
Unanswered
PindaPixel
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
The error message tells you why clearly:
- "include": ["**/*.web.test.ts"]
+ "include": ["**/*.web.test.ts", "src/**/*.vue"] |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to configure application code, unit tests, and configuration files as different projects since they run in different environments. I've seen the Vue starter template use composite but in the end the language service evaluates every file using
tsconfig.vitest.json
since that defines an empty exclude array.A minimal reproduction of my setup is available here: https://github.com/PindaPixel/vue-tsconfig-paths
What I notice is a inconsistent behaviour between the VSCode web and desktop editors:
There's a few instances that I cannot wrap my head around, though. For one, why does my paths defined in
tsconfig.app.json
not apply to.vue
files while this is the only config that includes them explicitly:And why am I unable to import
.vue
files from.web.test.ts
files but am able to import them from.test.ts
files:Configuring TypeScript in this setting seems very complicated and I cannot say whether certain behaviour is a bug, unsupported or just erroneous configuration on my end.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions