Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello! For reasons outside of our control, we require our SvelteKit app to work over the The biggest obstacle so far is thatbrowsers refuse to load ESM scripts over I have prepared ademo repo configured to build the Svelte Kit demo app with the static adapter. You can try it yourself by building it and pointing your browser directly to |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 8 replies
-
Any Solution to this? Having the same problem rn... would be glad for any help :( |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
In newer Kit versions you can set To make routing work, set the |
BetaWas this translation helpful?Give feedback.
All reactions
-
The build command should output a standalone file (with possibly a few non-essential files). It looks like something is off in your case. Maybe the library has something to do with it, not sure. Ideally create a minimal reproduction and ask a separate question, providing all the necessary files. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Is it SSG or SPA? Is SSG possible? |
BetaWas this translation helpful?Give feedback.
All reactions
-
It's fully static, see e.g. the linked example further up. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
https://svelte.dev/docs/kit/configuration#router
Does that mean that it is SPA? |
BetaWas this translation helpful?Give feedback.
All reactions
-
It effectively is an SPA, though most SPAs would still pull data from some server instead of rendering it into the page on the server. Here the entire static application is in a single file, which requires hash-based routing. I don't know if the inline bundle strategy can work without this, i.e. having it generatemultiple independent HTML files that inline their own JS & CSS. I suspect that this is not possible, though. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
