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 '_react2.PropTypes.number') #32

Open
iam1208 opened this issue Jul 25, 2018 · 6 comments
Open

Undefined is not an object (evaluating '_react2.PropTypes.number') #32

iam1208 opened this issue Jul 25, 2018 · 6 comments

Comments

@iam1208
Copy link

iam1208 commented Jul 25, 2018

When I am running my app I am after adding circular slider getting this error

@ghost
Copy link

ghost commented Aug 22, 2018

You have to add PropTypes library and import then into the files. React recently put prop-types into its own package.

@danstans
Copy link

danstans commented Oct 1, 2018

Can you explain what you mean by this @JohnCoronel, I'm also getting this error and not really sure where to go from here.

@ghost
Copy link

ghost commented Oct 2, 2018

@danstans see #21. You can edit the src files and update the imports so propTypes is included

@ImHamzaAnwer
Copy link

still not solved

@afshawnlotfi
Copy link
Contributor

I fixed it by getting the package using yarn add prop-types --dev

and then editing the src files CircularSlider.js and ClockFace.js
to use import PropTypes from 'prop-types'; instead of the React imported PropTypes because they deprecated it in the newer releases. Hope this helps and I will make a PR to merge this in.

Thanks
Afshawn

@iambilalriaz
Copy link

iambilalriaz commented Jul 7, 2022

can this slider be used while developing app using expo? if yes then how? because I'm facing this error
#46

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

5 participants