You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SSR framework such as Next, Nuxt or Sveltekit by example, the rendering is done on the server side which doesn't have object such as Document or window until being on the browser. As more and more, front-end development trend to go to a SSR solution for performance UX improvement, some awareness should be shared about the fact it would have some issue in the ssr, exactly because of the window and document requirement.
Please check this simple nextjs example with simple workaround solution: document isssue example
Walker.js is currently built for frontend usage, and an instance should be created client-side not server-side.
When calling Elbwalker() window- or document-based operations are performed e.g. init triggers or the elbLayer.
However, there was an issue with the global vars used for document and window. Those are fixed.
I'd suggest moving init to the Layout or a Component. With the fix, it should be possible. To fully support server-side usage & destinations I need to better understand requirements. Feel free to reach out. Fix will be released with 1.6, coming soon.
Is your feature request related to a problem? Please describe.
In SSR framework :
Describe the solution you'd like
Update documentations to help with ssr requirement
The text was updated successfully, but these errors were encountered: