-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
The page from the reproduction loads during SSR and then fails during hydration during dev mode if you both have adblock on and are not using the new experimental.prebundleSvelteLibraries option (RobBrazier/svelte-awesome#775).
This particular example is kind of an edge case, but the outcome is really bad and I'm not so sure how rare it is more generally. Per Rich's point, sometimes things fail to load because you live in NYC and take the subway and lose connectivity going into a tunnel. That the entire page would be wiped out eventhough SSR succeeded is quite a bad outcome. If we wrapped the whole hydration in a try/catch maybe you'd at least see the server-rendered page. Or perhaps if we had error boundaries the developer could do something smarter
Reproduction
https://github.com/benmccann/500-import-failure
Logs
I get a message in the browser:
Failed to fetch dynamically imported module: http://localhost:3000/src/routes/index.svelteScreenshot:
System Info
This fails on 1.0.0-next.138 and newer all the way up to master since that's when we turned on compilerOptions.hydratable: #2024
Severity
blocking all usage of SvelteKit
Additional Information
No response
