scarf
scarf14mo ago

how to import svg in vite without type errors?

2 Replies
TheYuriG
TheYuriG14mo ago
how are you exporting it? error says you don't have a default export don't you?
scarf
scarf14mo ago
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