emitting declarations for a single file adds global declarations which have ts errors #5243
Labels
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔨 p3-minor-bug
Vue - Official extension or vue-tsc version
2.2.8
VSCode version
1.97.2
Vue version
3.5.13
TypeScript version
5.7.3
System Info
package.json dependencies
Steps to reproduce
pnpm i; pnpm check
dist/App.vue.d.ts
to see errorsWhat is expected?
The source has
// @ts-ignore
in these parts:language-tools/packages/language-core/lib/codegen/globalTypes.ts
Lines 138 to 141 in 9b6911a
These should be present in the output dist too. Or better fix those types if possible 👀 Or maybe not emit global types like when whole project is compiled.
What is actually happening?
Those comments are getting stripped somewhere.
Link to minimal reproduction
https://github.com/brc-dd/vue-tsc-ts-ignore-strip
Any additional comments?
x-ref: #5232 (comment)
The text was updated successfully, but these errors were encountered: