Open coravacav opened 10 months ago
I noticed the sandbox sometimes doesn't fire the error the first time it loads, I am not sure why (possibly because I also get an error saying it switches to full client rendering). This is what I get on a refresh (in the code sandbox browser)
Due to an extension. Apologies. Required testing in a whole other browser to confirm
After even more investigation (apologies for the rapid re-open / close) it seems like that actually was not the issue and it's still occurring in the app. The code sandbox is reproducible once there's a <head>
and the head contains any <link>
.
Both the original post and this comment come with a new link that accurately reproduces the issue.
Apologies once more.
Link to the code that reproduces this issue
new codesandbox
To Reproduce
Create a new application, install
styled-components
, follow the instructions found here for styled-components, run the app with the appropriate modifications (and something in the page), see the error shown.Current vs. Expected behavior
I expect no hydration errors from following the documentation instructions on setting up
styled-components
.Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Additional context
It breaks with or without
styledComponents: true
in the config file's compiler options.