You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrong path resolution to components into $lib at dev server start, throwing an error 500.
While in development after server start it works, but at server start with npm run dev I have an error about path resolutions.
The error message shows that relative path to the component is duplicated.
Reproduction
Check this:
Page renders:
500
ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Error: ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Logs
[vite] page reload src/routes/index.svelte (x2)
ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Error: ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Error: ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
I'm using it to develop a private project, so I can't share a link to a repo.
But, if needed, I can try to create a new repo just to reproduce this error.
The text was updated successfully, but these errors were encountered:
Thanks!
It worked uninstalling svelte and installing it again with npm i -D [email protected].
Is there an intended hotfix to svelte package to solve this?
sveltejs/svelte#6572 should fix it, but we're considering holding off on that until a new release of Vite which should be happening tomorrow and which may also fix the issue. This does seem to be Svelte surfacing a bug in Vite rather than a bug in Svelte.
In either case, closing this issue, as it is indeed the same as #2001.
Describe the bug
Wrong path resolution to components into
$lib
at dev server start, throwing an error 500.While in development after server start it works, but at server start with
npm run dev
I have an error about path resolutions.The error message shows that relative path to the component is duplicated.
Reproduction
Check this:
Page renders:
500
ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Error: ENOENT: no such file or directory, open '/home/alxbr/github/media-centre-network/tempo-na-cidade/previsao-do-tempo/src/lib/components/base/src/lib/components/base/SiteMain.svelte'
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
I'm using it to develop a private project, so I can't share a link to a repo.
But, if needed, I can try to create a new repo just to reproduce this error.
The text was updated successfully, but these errors were encountered: