scarf
scarf12mo ago

how to import svg in vite without type errors?

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