Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for virtual:windi-devtools #294

Open
kotx opened this issue Apr 23, 2022 · 1 comment
Open

Add types for virtual:windi-devtools #294

kotx opened this issue Apr 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kotx
Copy link

kotx commented Apr 23, 2022

Describe the bug

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.

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

import { browser } from "$app/env";
if (browser) import("virtual:windi-devtools")

Versions

  • vite-plugin-windicss: 1.8.4
  • vite: 2.9.0?
  • framework(vue/react/svelte/etc): svelte(kit)@next
@kotx kotx added the bug Something isn't working label Apr 23, 2022
@kotx
Copy link
Author

kotx commented Aug 7, 2022

Unfortunately I just ran into this issue again, still not fixed. Any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant