When importing virtual:windi-devtools in TypeScript code, it errors with Cannot find module 'virtual:windi-devtools' or its corresponding type declarations.ts
But in the build, there's no error and devtools is loaded normally, since it's just a TypeScript error. Adding // @ts-ignore works as expected.
Describe the bug
When importing
virtual:windi-devtools
in TypeScript code, it errors withCannot find module 'virtual:windi-devtools' or its corresponding type declarations.ts
But in the build, there's no error and devtools is loaded normally, since it's just a TypeScript error. Adding// @ts-ignore
works as expected.Minimal Reproductions
I'm following the SvelteKit instructions here https://windicss.org/integrations/vite.html#sveltekit-as-of-1-0-0-next-102 and I added
Versions