Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Warning: Accessing PropTypes via the main React package is deprecated #163

Closed
@alebrozzoSP

Description

@alebrozzoSP

Thanks for this great package, Will! I love React and I love TypeScript, and I love using TypeScript with react!
There are a couple of warnings when building and running the app, which aren't that annoying except that when running tests they clog the console, and also thwy worry me for future use of TS on a React 16 project (that I don't forsee any time soon though 😄)

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

Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in  React v16.0.
Use the latest available v15.* prop-types package from npm instead.
For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs

Is this a bug report?

Not really, more like a glitch

Which terms did you search for in User Guide?

PropTypes

Environment

  1. npm ls react-scripts-ts (if you haven’t ejected): 2.6.0
  2. node -v: v8.1.0
  3. npm -v: 5.0.3
  4. yarn --version (if you use Yarn): 0.24.6
  5. npm ls react-scripts-ts (if you haven’t ejected): this is # 1 repeated

Then, specify:

  1. Operating system: Win10
  2. Browser and version (if relevant): Any, and console as well

Steps to Reproduce

  1. Just run the app and the warnings appear on the console
    alternatively
  2. yarn test shows the warnings as well (the real reason I created this issue)

Expected Behavior

No warning is displayed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions