D
Deno

help

how to import svg in vite without type errors?

Sscarf7/1/2023
TTheYuriG7/1/2023
how are you exporting it? error says you don't have a default export don't you?
Sscarf7/3/2023
it's a plain svg file. i could've made it a tsx default export but wanted import it as-is as vite handles it natively

Looking for more? Join the community!