Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

352
Views
svelte crashes on client render

I have a sveltekit project that is fairly basic in it's function.

It works "fine" when rendering on the backend, but as soon as it switches over to client side it crashes. And if I disable ssr, then I get stuck with a white page and errors in the console log.

This is the error that I am getting:

proxy.js:15 
[HMR][Svelte] Unrecoverable error in <Root>: next update will trigger a full reload

root.svelte:46 
Uncaught (in promise) Error: options.hydrate only works if the component was compiled with the `hydratable: true` option
    at Object.claim [as l] (root.svelte:46:13)
    at init (index.mjs:1812:40)
    at new Root (root.svelte:16:25)
    at createProxiedComponent (svelte-hooks.js:245:9)
    at new ProxyComponent (proxy.js:239:20)
    at new Proxy<Root> (proxy.js:339:11)
    at Renderer._init (start.js:664:15)
    at Renderer.update (start.js:615:9)
    at async Router._navigate (start.js:267:3)

and I have no idea what I've done wrong or even where to begin looking, as I've never really seen this type of error before.

Also I am not using any component library in my project, but I have some components in the src/lib/ folder that is created and linked by sveltekit

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I figured out what caused the issue!

The error only occurs if the sveltekit project is part of a npm workspace.

So in a sense, fairly simple to fix by just removing it and managing it separately.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!