Skip to content

Browser refusing to import SVG *raw* #2459

Discussion options

You must be logged in to vote

I created a new repo and everything worked.
Then I renamed the file where I was loading the SVG from .js to .ts and... mine worked.
I still have no idea what's going on.
Only the import Foo from "foo.svg?raw" syntax works. import() doesn't return a string.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by richardtallent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant