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"
emotion version: 10.0.4
react version: 16.7.0-alpha2
Problem description:
- I'm not using server-side rendering so these warnings aren't useful for me and are just console noise that means real problems will be masked. Apart from running in a production build, I can't see any way to turn these warnings off right now.
- The error message doesn't help me understand why these pseudo classes are a problem; I can't find them mentioned in the Emotion docs, or references on the Internet as to why these might be a problem.
Suggested solution:
- Provide a way to turn off these warnings if users don't want them.
- Provide a link, or some documentation, as to why these pseudos are problematic.
Emotion 10 is emitting a series of console warnings along the lines of:
emotionversion: 10.0.4reactversion: 16.7.0-alpha2Problem description:
Suggested solution: