rollup-plugin-svelte-svg
rollup-plugin-svelte-svg copied to clipboard
[!] Error: Could not load .../myfile.svg.rollup-plugin.svelte.rollup-plugin.svelte
I'm using Rollup and I'm getting this error:
[!] Error: Could not load /mnt/c/Users/xxx/proj/xxx/public/images/myfile.svg.rollup-plugin.svelte.rollup-plugin.svelte (imported by src/client/components/MyComponent.svelte): ENOENT: no such file or directory, open '/mnt/c/Users/xxx/proj/xxx/public/images/myfile.svg.rollup-plugin.svelte.rollup-plugin.svelte'
I only load svelteSVG once, I don't know why it shows the .rollup-plugin.svelte part twice here...
Do you have a rollup config I can repro this with?
See attached minimal example. Extract, run npm install, run npm run build, observe error.
(Edit: Redownload please, a file was missing.)
Closing issues before archiving the repository. Svelte supports importing SVGs natively now.