Skip to content
Discussion options

You must be logged in to vote

Hi everybody !

We found the problem ! :D
We have a custom Link component to make the difference between internal and external links + to add the language in the url.
But, we are using window.location.pathname for that.
We thought to add a condition if (window !== null)... but it was not enough, we didn't have any problem during the build, but we had a problem with the SSR, because the client rendering was different to the server rendering.

So, we just add a NoSsr wrapper component from Material UI and it solved the problem !

Thank you for your help @LekoArts :)

Have a good day !

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@juliensl
Comment options

@LekoArts
Comment options

Comment options

You must be logged in to vote
1 reply
@LekoArts
Comment options

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

This discussion was converted from issue #31435 on May 17, 2021 07:57.