Replies: 3 comments 5 replies
-
One way to fix this is to add query params, but it looks like hack: |
Beta Was this translation helpful? Give feedback.
-
Did you end up finding a solution for this ? 👀 |
Beta Was this translation helpful? Give feedback.
-
Don't forget to add the file with overrides before the My /// <reference types="./types/shims.d.ts" />
/// <reference types="vite/client" /> And SVG files are being properly cast as Components (and not strings anymore). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you declare types for SVG to import it as Svelte Component:
VSCode anyway will see types from
vite/client
and treat SVG as string.Any idea how to fix (override) it?
This solution doesn't work: https://vitejs.dev/guide/features.html#client-types
PS: #12276
Beta Was this translation helpful? Give feedback.
All reactions