Skip to content
Discussion options

You must be logged in to vote

As the error message says:

"localStorage" is not available during server side rendering.

You'll need to handle window/browser elements during SSR as they are not available in Node:

https://www.gatsbyjs.com/docs/debugging-html-builds/

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Notaduck
Comment options

@LekoArts
Comment options

@Notaduck
Comment options

Answer selected by Notaduck
Comment options

You must be logged in to vote
3 replies
@Notaduck
Comment options

@DhillonN
Comment options

@Notaduck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #28117 on November 17, 2020 08:09.