-
Notifications
You must be signed in to change notification settings - Fork 105
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
undefined is not an object (evaluating '_react3.default.PropTypes.string') #123
Comments
Hey @GabrielBB I made a pull request today that goes through fixing the error you are seeing. React switched over to a different package called prop-types and that breaks it if you have a newer version. |
Did this get solved? |
@ccostel I made a PR for it but i don't think it was merged yet. |
@hans0low I actually implemented your changes and they work. Hopefully @MichaelCereda will soon merge it. |
Still undefined is not an object (evaluating '_react3.default.PropTypes.string'). Did you update repo? |
Yeah, I also had to apply the changes of the PR manually, But it works. Thanks @hans0low |
npm install MichaelCereda/react-native-form-generator#pull/124/head I believe this should work. |
It's been a while and @MichaelCereda still did not merge. I tweeted him in the hope that it will come to his attention. |
Hi, I'm getting error. I tried npm install MichaelCereda/react-native-form-generator#pull/124/head npm ERR! code 1 I'm trting to run this using Expo. Can this be the problem ? I ask for help on this issue. |
@ventocilla You might want to try manually changing the files. As of now, the @hans0low PR has been merged. But I installed the package today, then got the "undefined is not an object (evaluating '_react3.default.PropTypes.string')" error. I took a look at the .js files that the @hans0low PR (#124) changed but my local files (that I installed today), did not have the @hans0low PR changes applied. To fix the error, I had to manually edit my local .js files to match the @hans0low PR. # |
@hopewise did you manage to fix it? |
no, I abandoned using this package.. |
I just copy the example code on the README.md and it throws this error. I think it's because something about PropTypes has changed in newer versions of React Native.
The text was updated successfully, but these errors were encountered: