@niba is right, you may be using libraries that still use propTypes the old way. What you can do is to delete the node_modules folder and install a package npm install -g npm-check-updates
Then run npm-check-updates -u
and npm install
This will install the latest versions of each package from you. If the warning still persists you can revert to a older version of react till the updates for each package are available– Shubham Khatri Apr 9 at 8:13
前端工程师、程序员