-
Notifications
You must be signed in to change notification settings - Fork 128
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
Deprecated Warning about PropTypes #48
Comments
I tried to fix this one, but without knowing which components are causing this (there are several components with propType validation) I got lost. I'm pretty sure this happens because on ui-router-react components, the proptypes are being defined like this:
Not necessarily like this, but in a sense that the propTypes are being imported directly from the 'react' package, and as of React 15.5.x doing this will throw deprecation errors as there is a package just for this (https://www.npmjs.com/package/prop-types) So it's not a problem on your code, it just need to be updated on ui-router-react |
#46 Seems to address the problem |
@kaumac Thanks for nicely explaining. So, I should wait for |
Yeah, sorry if I didn't update you back, but |
In ui-router 0.4 it's error because of superseded transition Aborting was added in 0.5 (https://github.com/ui-router/react/releases) React changes - [x] deprecated props - ui-router/react#48 - [ ] deprecated cursor - omniscientjs/immstruct#89 (immstruct not released)
Console says -
Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
I guess this is for defining const in index.js (root) file. Can you please help me get out from here?
The text was updated successfully, but these errors were encountered: