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

Getting warning for prop types while running test cases with jest #218

Closed
RajeshJangra opened this issue Nov 3, 2017 · 6 comments
Closed

Comments

@RajeshJangra
Copy link

I am getting following warning while running test cases. Prop types in our own code are accessed via npm package and the warnings go away if I remove react-tabs.

Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

@danez
Copy link
Collaborator

danez commented Nov 3, 2017

react-tabs is not using createClass, so I have no idea where your warning is coming from. It might be the content inside your tabs.

@AndreasPresthammer
Copy link

AndreasPresthammer commented Nov 3, 2017

I got the same warning when upgrading from 2.0.0 to 2.1.0.

I don't use React 16 yet. Using react version 15.6.1.

@ryanwiemer
Copy link

For what its worth I appear to be getting the same warning. I am on React 15.6.2. Is there something more useful we could provide to help understand where the warning is coming from?

@danez
Copy link
Collaborator

danez commented Nov 18, 2017

This is a bug in babeljs. I will fix it there. babel/babel#6850
You can safely upgrade to react 16, react-tabs is not using any deprecated react APIs.

@briandipalma
Copy link

I think this can be closed given the original babel bug has been closed?

@danez
Copy link
Collaborator

danez commented Apr 18, 2018

Fixed in 2.2.2

@danez danez closed this as completed Apr 18, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants