-
Notifications
You must be signed in to change notification settings - Fork 47k
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
React prop-types warnings #9450
Comments
Which versions of which packages exactly are you using? This specific message could be a false positive, as described in http://fb.me/use-check-prop-types. |
React version "15.5.4" did yarn upgrade, now getting abit different warnings: should i just ignore this? -- Dang.. my react-router outdated they fixed the issue i think ill update now. |
If you can publish a project reproducing this, it will really help! Even if you see this with an old library version. Maybe there's still a bug on our side. |
Well, I kinda trying to fix my project now since everything is broken currently (redux-async-connect deprecated and using some old libs + old react version 14.something, screams at me that cannot find some react-async-connect bah hope I will fix it. |
I'm going to close for now since it's not clear whether you're having issues with React in particular or not. From how your error message looks it might be you have React 0.14 in the bundle somewhere. If you do, make sure to update it to 0.14.9 which fixes the false positive for the warning. |
Perhaps this "warning" should have used |
Thanks for feedback. We do plan to use |
Awesome! Thanks for the response on this. Sorry for the hasty and angry comment. I had a frustrating afternoon debugging our integration tests. CasperJS or PhantomJS (apparently) bail to stderr when it gets a console.error.
…On April 25, 2017 at 02:31:15, Dan Abramov ***@***.******@***.***)) wrote:
Thanks for feedback. We do plan to use console.warn for deprecation warnings in the future: #9395(#9395).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub(#9450 (comment)), or mute the thread(https://github.com/notifications/unsubscribe-auth/AABxHD8NbGYdOLCFSPnukQmnOF-yoesNks5rzb1jgaJpZM4NATYZ).
|
I know that in some cases people choose to treat |
I wasn't aware that these tools did so either until this issue came up. It seems a strange thing, honestly. Frustratingly there was no real behavioural failure, only the console.error causing a non-0 error code. Going to watch the warnings issue thread to keep up to date. Undoubtedly there's a way to change it in the headless browser(s) or the test runner but the fastest thing to get our tests to pass was to freeze our React version at 15.4.2 for now. |
You can also try overriding console.error = console.warn; |
It's possible to try. Might have unintended consequences, though, so will need to proceed cautiously. Thanks for the help! |
Just in case others are fighting with react's console.errors, this is the way of getting rid of them.
These console.error are very annoying when you are debugging more important and broken stuff than those warnings and in that situation they make debugging almost impossible. Warnings are warnings, errors are errors... I strongly suggest to change those to console.warn |
Hey,
I'm getting some errors after migrating to react 15
Warning: Failed Context Types: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types
Is there any chance to add some indication where the error comes from, file name maybe?
I have cleaned the entire project from React.PropTypes and I do not use any other propType validators.
Thanks.
The text was updated successfully, but these errors were encountered: