Skip to content
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

Open
GabrielBB opened this issue Oct 10, 2017 · 14 comments
Open

Comments

@GabrielBB
Copy link

GabrielBB commented Oct 10, 2017

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.

@hans0low
Copy link
Contributor

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.

@ccostel
Copy link

ccostel commented Oct 22, 2017

Did this get solved?

@hans0low
Copy link
Contributor

@ccostel I made a PR for it but i don't think it was merged yet.

@ccostel
Copy link

ccostel commented Oct 25, 2017

@hans0low I actually implemented your changes and they work. Hopefully @MichaelCereda will soon merge it.
Thanks for the PR :) 👍

@alkanyunus
Copy link

Still undefined is not an object (evaluating '_react3.default.PropTypes.string'). Did you update repo?

@lakshyaGoel
Copy link

Yeah, I also had to apply the changes of the PR manually, But it works. Thanks @hans0low

@aanchan
Copy link

aanchan commented Dec 12, 2017

@ccostel @hans0low is there a way of applying the PR automatically while waiting for the merge to happen? i tried suggestions here but kept running into errors.

@hans0low
Copy link
Contributor

hans0low commented Dec 12, 2017

@aanchan

npm install MichaelCereda/react-native-form-generator#pull/124/head

I believe this should work.

@ccostel
Copy link

ccostel commented Dec 29, 2017

It's been a while and @MichaelCereda still did not merge. I tweeted him in the hope that it will come to his attention.

@ventocilla
Copy link

Hi,

I'm getting error. I tried npm install MichaelCereda/react-native-form-generator#pull/124/head
but I'll receiveing the following message:

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout pull/124/head
npm ERR! error: pathspec 'pull/124/head' did not match any file(s) known to git.

I'm trting to run this using Expo. Can this be the problem ?

I ask for help on this issue.

@Gabriel-J-Young
Copy link

Gabriel-J-Young commented Nov 17, 2018

@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
Copy link

I just installed the package today, I got this error which appears only if I only do:

import { Form } from 'react-native-form-generator'

Screen Shot 2019-04-22 at 1 03 47 PM

@saravanabalagi
Copy link

@hopewise did you manage to fix it?

@hopewise
Copy link

no, I abandoned using this package..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants