#Error: Unexpected Server Error (Error message after deploy)

1 messages · Page 1 of 1 (latest)

toxic shoal
#

i dont know why but local is ok

stoic iris
#

so something isn't matching between server and client render. One of the things that I've seen cause something like local working ok, and prod not, is stuff like locale or timezone differences. so like if you render a date/time in one timezone on the server, and then the client renders another it can cause hydration to throw an error like that. Also would explain why it works locally because things like timezone and locale will naturally match.

#

another approach would be to push the rendering as client only. (see remix-utils clientOnly component).

toxic shoal
#

Okee thanks