Having an issue with SSR #9662
Replies: 3 comments 1 reply
-
The error tells you the solution: |
Beta Was this translation helpful? Give feedback.
-
Update: apparently by leaving the commented line
in my +layout.svelte was causing this warning/error. Not sure why, but once I removed that, deleted my .svelte-kit folder, and then re-ran, the message is gone. |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue — it turned out the build was triggered just because of a comment in +page.svelte that mentioned "trailingSlash". Removing the comment fixed it. |
Beta Was this translation helpful? Give feedback.
-
I'm building a sveltekit SPA into an existing api. I can't seem to figure out how to turn ssr off. Gone through the instructions and they're pretty straight forward.
In my src/routes/+layout.svelte I added
but I get an error. This is my relevant vite startup:
These are my package dependencies and versions:
I think I'm up to date and if anyone has any suggestions on what I could try it would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions