importMeta.d.ts
file causes TypeScript error due to uppercase character
#4541
Labels
importMeta.d.ts
file causes TypeScript error due to uppercase character
#4541
Describe the bug
There's a long-standing (or maybe recurring) TypeScript bug that filenames with uppercase characters are not handled properly within triple-slash directives on case-sensitive file systems. For Vitest, this means that the
importMeta.d.ts
file can't be referenced without causing a TypeScript error:Note that Vite recently fixed a similar issue: vitejs/vite#13309
Reproduction
See this repository for a small project that shows the issue (only on macOS or Linux, I believe): https://github.com/macdaddyaz/vitest-import-meta-bug
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: