-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Failed prop type: Calling PropTypes validators directly error #696
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
Please specify versions of |
react 15.5.4
redux 3.6.0
react-redux 5.0.4
…On Thu, May 11, 2017 at 18:59 Dan Abramov ***@***.***> wrote:
Please specify versions of react-redux and react you are using.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#696 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeGHALPLjU0d4GmKmmlNV1gP4yOiR0-ks5r4uongaJpZM4NX1YI>
.
|
Can you provide a project reproducing this? |
@gaearon Here are 2 repos that reproduce the issue. test-lib is packed by webpack/babel as a library, other one uses this lib. https://github.com/Orgil/test-lib |
I'm not seeing that error pop up. Everything renders correctly and nothing comes up on the console. When are you seeing this error? Have you tried deleting your node_modules folder and reinstalling? |
thats weird. Just running this showing error on my end. those 2 are fresh repos i just created. |
btw, this might be helpful. i'm using node 6.10.3. in order to test lib repo is locally linked to app. |
I'm on a newer node, but that shouldn't apply since this runs in the browser. I did the same with npm link. What browser (with version) are you using? |
chrome 57.0.2987.133. also on firefox 53 generate error. |
I'm on mac and just tried on linux it is generating same error 3 times. if i remove connect from test-lib it generates error 1 time. really confused. |
turns out this is prop-types issue. facebook/prop-types#38 |
Well, that's upstream of us. Nothing we can do about that here. I'll make sure we stay up to date on the deps if that involves a breaking change on prop-types. Really weird I'm not seeing the error. I'm on Chrome 58, so I should be seeing it, but I'm not. |
Please see facebook/prop-types#38. This was a false positive caused by production version of It is fixed in You might need to rebuild the UMD bundle of the component that depends on |
I think this means we need another pair of |
Always so helpful. Thank you @timdorr! |
Sorry about the mis-fire this weekend. I'm having a busy time at work with a big product release on the 30th (culmination of 2 years of work!) and that obviously has my focus, including weekends. We're getting close to having it all worked out, so I'll try to find some time tonight to review things and get this pushed out. Sorry for the delays! |
OK, 5.0.5 is out! |
@patialmanoj : That said, I don't think you're experiencing the error described in this issue. Your error says that |
thanks |
as my investigation, it happens after importing connected component from library. is it possible that validators are called once converted by babel?
The text was updated successfully, but these errors were encountered: