As emotion is used internally by Frontity our code should take into account what can and cannot be done using CSS in JS with emotion
This is NOT an issue that should be ignored or "fixed" under normal circumstances. We recommend you use the following solutions only if you're getting these messages because of some third-party CSS that you don't have no control over (e.g. from a CSS framework or a component library or another external source).
Solution 1
For this specific issue, there's this solution that seems to work pretty well to solve this issue in a Frontity project
components/index
Solution 2
You could also define functions to search and replace the selectors causing the warnings by the recommended ones
The pseudo class ":nth-child" is potentially unsafe when doing server-side rendering. Try changing it to ":nth-of-type"
The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type".