scarf
scarf2y ago

how to import svg in vite without type errors?

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