Trying out the hydrate function and getting TypeError #599
Unanswered
mirabledictu
asked this question in
Q&A
Replies: 1 comment
|
I suspect the hydration script isn't on the page. We have a small bootloader of sorts that lets us do a bunch of hydration-related tasks before even the core Solid JavaScript library is loaded. We capture events for playback and set code for handling async resources if they load before the main JS bundle does (this can happen when streaming). You want to server render the hydration script into your page. https://www.solidjs.com/guide#hydration-script |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm trying the hydrate function with a fresh solid starter for research purposes with Vite and I'm getting this type error:
TypeError: Cannot read property 'resources' of undefinedIt's in this part
Code:
Am I missing something?
All reactions