-
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
What I should do if another dependency use React.PropTypes #11661
Comments
As a temporary escape hatch you can create const React = require('react');
const PropTypes = require('prop-types');
React.PropTypes = PropTypes; and then put import './patchReact'; as the very first import in your app before any other imports. Then it will work. But really, you should file an issue with the package that still uses PS Don't use 16 betas :-) A stable version has been out for a few months now. |
I don't sure. I got: |
This is not enough information to help you, sorry. We can't guess what went wrong without a full reproducing example. Also, this is a bug tracker. Please refer to community resources for support: https://reactjs.org/community/support.html |
I use "react": "16.0.0-beta.5".
Some another package use React.PropTypes - I cannot update another package. What should I Do?
I search some polyfill. I try to write my own, but it doesn't work.
The text was updated successfully, but these errors were encountered: