Ask questionsCannot turn off "potentially unsafe when doing server-side rendering" noise
Emotion 10 is emitting a series of console warnings along the lines of:
The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to "first-of-type" The pseudo class ":nth-child" is potentially unsafe when doing server-side rendering. Try changing it to "nth-of-type"
Answer questions ahutchings
@kylegach Thanks, I missed that check at the top. Do you have a suggestion for how we can use the suppression comment when running unit tests in Jest (along with the babel plugin), where NODE_ENV is set to "test" automatically by the runner?
We're also developing a component library, and would like for our users to be able to take advantage of emotion source maps (provided by the babel plugin) in development without seeing the unsafe selector errors, but I suppose that is more the larger issue that needs to be resolved (#1178).