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
I generated a package, copied it into another svelte project, but all the references to $lib inside the package look for files in the outer svelte project's $lib rather in itself - any way around that?
I get the error:
failed to load module for ssr: /src/lib/utils/fullscreen
Because the file is correctly at:
/src/MY-PACKAGE/utils/fullscreen
Reproduction
Make a project that includes some $lib imports.
Package the project with svelte-kit package.
Rename and copy the package into another svelte project.
Load one of the packages entry points in the new project.
Notice that the entry point is trying to find its dependency in the outer project's $lib folder rather than its own.
Describe the bug
I generated a package, copied it into another svelte project, but all the references to
$lib
inside the package look for files in the outer svelte project's$lib
rather in itself - any way around that?I get the error:
Because the file is correctly at:
Reproduction
Make a project that includes some $lib imports.
Package the project with
svelte-kit package
.Rename and copy the package into another svelte project.
Load one of the packages entry points in the new project.
Notice that the entry point is trying to find its dependency in the outer project's $lib folder rather than its own.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: