-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Console error: Prop className
did not match
#2255
Comments
Greetings, just a friendly ping to see if there might be any leads as to why Safari might be causing different behavior for something like this? |
I was able to narrow down the problem a little bit. This is related to #1462 (and likely the issue described here). The code in question is emotion/packages/react/src/emotion-element.js Lines 40 to 55 in 676a926
The issue seems to be that on Safari the name of the component is not present in the stack trace. Here are the relevant snippets from example stack traces: Chrome:
Firefox:
Safari:
The CodeSandbox provided in the original description still reproduces this issue. Additionally, here's a Next.js repo that also exhibits the problem: https://github.com/Methuselah96/nextjs-blog @Andarist Can your provide input on whether there are any potential solutions or workarounds we can pursue or if there is a plan to get this resolved? This is impacting quite a few people using |
@Methuselah96 I would accept a PR removing this code temporarily, It would be also great if we could gather example stack traces from different browsers so we could write tests for this label extraction. There is some code in React which does a similar thing - we might want to take a look at this to see if we could leverage a similar logic: https://github.com/facebook/react/pull/18561/files#diff-116ca25b733347b0a69576d788fdad10eb9e5d118a7f26f0cbd0afb2eedb2bfdR31 |
@Andarist @Methuselah96 Is there a working solution, it throws these warning in firefox and safari for me. Chrome works fine. |
Any solution for this problem? @Andarist @Methuselah96 @srmagura |
I get this error in Firefox on Ubuntu, while using react-select: JedWatson/react-select#3590 |
Greetings,
The following error shows up but only when using Safari browser (not able to reproduce on Chrome)
React: 16.8.6
React-select: v4.1
@emotion/cache: "^11.0.0"
@emotion/react: "^11.1.1"
Mac OSX Safari v: 13.1.3
Code sandbox with reproducible error:
https://codesandbox.io/s/react-ssr-bug-hfp29?file=/src/components/App.jsx
First reported here: JedWatson/react-select#3590 (comment)
The text was updated successfully, but these errors were encountered: