Hi
The plugin does not seem to load the svg file as a component.
I imported svg file like this:
import ThankYou from '/images/illustrations/placeholders/thankyou.svg?component';
I also setup vite.config.ts like so:
svgLoader({
defaultImport: 'component',
})
Despite all that I get this error:
Uncaught (in promise) DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('/images/illustrations/placeholders/thankyou.svg?component') is not a valid name
Hi The plugin does not seem to load the svg file as a component.
I imported svg file like this:
I also setup vite.config.ts like so:
Despite all that I get this error:
I am using version 3.4.0, which supposed to solve this issue as stated here: https://github.com/jpkleemans/vite-svg-loader/issues/51