-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
React.PropTypes validation warning #484
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
Comments
Something outside of react-redux is calling proptype validation. We don't do that internally. |
Thank you for your reply! I've found the reason. I have another react version(15.1.0) which used as a dependency, when i upgrade it to 15.3.1 the warnings disappear. |
I am seeing this error on It does seem like here you are calling a validator function which according to this would result in a warning or error being thrown. |
No, calling Have you updated to |
Tried updating the 5.0.4 and still seeing the warning. Really seems like react-redux is generating the warning. Stack trace looks something like...
|
Are you sure you don't have older versions of React somewhere in the tree? The reason I’m asking: https://github.com./reactjs/prop-types#compatibility. |
@gaearon have the same issue with |
That was specifically fixed in 5.0.4 (see #663). Something else must be triggering it. |
@denieler Please provide a minimal project reproducing it and I can take a look. |
@gaearon nothing special, I just add
And it doesn't show warnings in webpack-dev-server mode, but when I built it and mounted as a library - it does. |
@gaearon I've investigated it a little bit and it seems that happening only when |
@timdorr maybe you have your comment how it can be fixed in this conditions? |
We need a more complete example. Can you share your whole repo? Just that code snippet by itself doesn't really tell us anything. |
@timdorr sorry, created clean project and seems it works |
I have
[email protected]
and[email protected]
in my project and got the following warning:How to avoid these warnings? I've read this guide but still have no idea. Not sure if it is emitted by react-redux's storeShape. Please point out if i'm wrong, thanks!
The text was updated successfully, but these errors were encountered: