Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] Error: Could not load .../myfile.svg.rollup-plugin.svelte.rollup-plugin.svelte #37

Open
CherryDT opened this issue Dec 31, 2023 · 2 comments

Comments

@CherryDT
Copy link

CherryDT commented Dec 31, 2023

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...

@MKRhere
Copy link
Member

MKRhere commented Jan 2, 2024

Do you have a rollup config I can repro this with?

@CherryDT
Copy link
Author

CherryDT commented Jan 4, 2024

See attached minimal example. Extract, run npm install, run npm run build, observe error.

repro.tgz

(Edit: Redownload please, a file was missing.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants