Cannot subscribe to 'page' store on the server outside of a Svelte component, as it is bound to the current request via component context. #10824
Replies: 5 comments
-
I can't replicate the issue right now as I'm not at my pc but I think your code should not error. Have you tried creating a minimal reproduction? |
Beta Was this translation helpful? Give feedback.
-
I had a similar error, all I did was update a few packages: (kit, svelte, vite, typescript, svelte-vite-plugin) and the problem went away. |
Beta Was this translation helpful? Give feedback.
-
I'm getting this error sporadically when I run SvelteKit in dev mode, but not in production. Is this anything to worry about? |
Beta Was this translation helpful? Give feedback.
-
I deleted the |
Beta Was this translation helpful? Give feedback.
-
This happens with me when I update the version of dependencies and vite optimization happens. As mentioned in above comments, it happens in DEV mode only! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting following error on my root layout file.
Since this error is thrown at root level, my application is unable to load. Here is the code snippet of my +layout.svelte file:
I am unable to figure out how to fix this, could anyone suggest a fix?
Svelte Versions in use:
Beta Was this translation helpful? Give feedback.
All reactions