Styled component's classname did not match the server issue #1619
Unanswered
Pixelatex
asked this question in
Help & Questions
Replies: 1 comment 5 replies
-
Is there something on Vike’s side that is blocking? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi,
We are trying to get an app up and running with the combination of VIKE + TS + styled + apollo.
So far I've combed through a dozen inconsistent examples and got something working:
https://github.com/Pixelatex/vike-styled-ts
However... styled components still gives the classname doesn't match server classname error...
but seemingly only in HMR as a prod build doesn't show this. (or warnings or suppressed there, not sure)Normally this is solved on other solutions such as next by passing along the ssr option to the babel compiler but none of the documentation/examples I've found so far give any indication that is required?
Update
I was wrong, I ran the dev build and as I feared, the warning was simply suppressed. So this issue is not actually related to HMR specifically but to vike/vite or my setup of it.
Beta Was this translation helpful? Give feedback.
All reactions