Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Babel issue? TypeError: Cannot read property 'any' of undefined #5

Open
ACPrice opened this issue Jan 10, 2018 · 3 comments
Open

Babel issue? TypeError: Cannot read property 'any' of undefined #5

ACPrice opened this issue Jan 10, 2018 · 3 comments

Comments

@ACPrice
Copy link

ACPrice commented Jan 10, 2018

Upon installing and trying to implement a <TextArea />, webpack is unable to compile. I get the following error:

TypeError: Cannot read property 'any' of undefined

at ...node_modules/react-text-input/target/out/index.js:1:1648

It looks like there's some issue with React.PropTypes not being imported or referenced correctly. I'm not sure if this has to do with some incompatibility with my Babel setup and the library, or if the library needs to be updated. Or it could be something else entirely. The inner workings of Babel are still new to me.

Let me know if there's any other detail I should provide.

Thanks for building such a useful tool!

@ACPrice
Copy link
Author

ACPrice commented Jan 11, 2018

It appears this may actually be due to React.PropTypes deprecation. I'll create a PR if/when I have time.

https://reactjs.org/warnings/dont-call-proptypes.html

@JonathanMEdwards
Copy link

Same here. react-text-input is incompatible with React 16.

@andreehultgren
Copy link

Same here - a fix would be nice!

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

No branches or pull requests

3 participants