facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 358 forks source link

_propTypes.default.shapeOf is not a function #374

Closed abhishekdubey1 closed 2 years ago

abhishekdubey1 commented 2 years ago

Screenshot Capture - 2022-02-03 - 14-46-41

Can't figure out what the problem is Below is the codesandbox to see the code producing this error I am using following packages and versions: "prop-types": "15.8.1", "react": "17.0.2", "react-dom": "17.0.2", "react-scripts": "4.0.0"

ljharb commented 2 years ago

shapeOf has never existed. You want shape or objectOf.