Uncaught ReferenceError: _$HY is not defined
So, I'm trying to change my site to server side rendering.
The site runs locally when run via import { render } from 'solid-js/web';
with
import { hydrate } from "solid-js/web";
and then used
yarn dev
, but then I deploy it, I get:
When I check the html that was generated by the server side rendering, I can see:
what is _$HY
?
(PS: I did replace
hydrate
instead of render
in my index.tsx
, in case thats whats missing)1 Reply
Apparently i forgot to add the
to the header which caused this error.
https://www.solidjs.com/guides/server#hydration-script
SolidJS
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.