This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
Warning: Accessing PropTypes via the main React package is deprecated #163
Comments
I haven't experienced this. Have you modified the starting template or added any dependencies? |
What is your const Comp = createClass({
}) |
Thanks for both the replies, @ianschmitz & @wmonk! I haven't thought that the problem could be on other dependencies I added myself because I had not seen the warning on the original project structure (I moved from a VS2017 template to separate backend and front end projects). You were correct, one of the warnings was caused by Thanks again! |
This was referenced Sep 12, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 😄)
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 repeatedThen, specify:
Steps to Reproduce
alternatively
Expected Behavior
No warning is displayed
The text was updated successfully, but these errors were encountered: