import $page
from $app/stores
in library
#9325
Unanswered
benjaminpreiss
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community,
Have been searching a lot, but I didn't find an answer to my question on how to enable importing
page
from$app/stores
in a library build.Here is an example for usage in a library: https://github.com/frontline-hq/sveltekit-i18n/blob/09b9c7b62e17661a7d5c8dbf1585132ff7b29f0a/src/lib/index.ts#L2
When I want to use that library in another sveltekit project, I get the error:
Related issues:
#1485
#6449
#3010
Does anyone know now, how to correctly configure vite / the sveltekit build to allow using $app/* imports?
Help greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions