D
Deno
S
Deno
•
3y ago
scarf
how to import svg in vite without type errors?
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,990
Members
View on Discord
Was this page helpful?
Yes
No
T
TheYuriG
•
7/1/23, 8:24 AM
how are you exporting it
?
T
TheYuriG
•
7/1/23, 8:25 AM
error says you don
't have a default export
T
TheYuriG
•
7/1/23, 8:25 AM
don
't you
?
S
scarf
OP
•
7/3/23, 1:58 AM
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