WebStorm (2019.1.3) throws the warning: "Unresolved variable isRequired" for ReactJS (16.8.6) PropTypes. How to solve this warning?
Settings.propTypes = {
onClose: PropTypes.func.isRequired,
isSettingsOpen: PropTypes.bool.isRequired,
};
React PropTypes has property isRequired
(https://reactjs.org/docs/typechecking-with-proptypes.html#proptypes).
prop-types (^15.7.2) npm package installed into "dependencies".
Thanks for any help in advance.
I know this is old, but kept running into this and figured I would help others. I found this GitHub issue with a solution that worked for me.
Follow these steps: