Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:first-child in server-side rendering #18332

Closed
tmthan opened this issue May 26, 2022 · 2 comments
Closed

:first-child in server-side rendering #18332

tmthan opened this issue May 26, 2022 · 2 comments

Comments

@tmthan
Copy link

tmthan commented May 26, 2022

When I use server-side rendering with NextJS. I recived a alert: "The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type""
I changed all of my css from ":first-child to ":first-of-type and I still recive that alert. I think the css of storybook still use :first-child. I hope you change from first-child to ":first-of-type" in storybook.
Thanks

@jserra91
Copy link

I have the same problem with Angular (v13).

@shilman
Copy link
Member

shilman commented May 26, 2022

closing as dupe to #18103

@shilman shilman closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants