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
Description
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
npm ls react-scripts-ts
(if you haven’t ejected): 2.6.0node -v
: v8.1.0npm -v
: 5.0.3yarn --version
(if you use Yarn): 0.24.6npm ls react-scripts-ts
(if you haven’t ejected): this is # 1 repeated
Then, specify:
- Operating system: Win10
- Browser and version (if relevant): Any, and console as well
Steps to Reproduce
- Just run the app and the warnings appear on the console
alternatively - yarn test shows the warnings as well (the real reason I created this issue)
Expected Behavior
No warning is displayed
Metadata
Metadata
Assignees
Labels
No labels