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

Getting two errors in SB console #9

Open
maneetgoyal opened this issue Apr 28, 2022 · 2 comments
Open

Getting two errors in SB console #9

maneetgoyal opened this issue Apr 28, 2022 · 2 comments

Comments

@maneetgoyal
Copy link

Getting these two errors in console.

Screenshot from 2022-04-28 09-45-26

For the pseudo class related error, this https://stackoverflow.com/questions/57239807/the-pseudo-class-first-child-is-potentially-unsafe-when-doing-server-side-ren might be the answer.

Originally posted by @qur786 in #5 (comment)

@maneetgoyal maneetgoyal changed the title > Getting these two errors in console. Getting two errors in SB console Apr 28, 2022
@qur786
Copy link

qur786 commented Apr 28, 2022

Warning related to use of ReacDOM.render is genuine since storybook team has not yet integrated new rendering logic of react version v18 (createRoot function) with storybook, It will be fixed with new version of storybook
information source issue: storybookjs/storybook#18045

@qur786
Copy link

qur786 commented Apr 28, 2022

The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type"
regarding this issue, storybook team has struggle with this console warning past few years, they have stated many times that they have patched the this bug but it is there.
Some storybook github issue links:
storybookjs/storybook#17911
storybookjs/storybook#6998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants