If you upgraded react to latest version and got a warning Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0.
, but you import PropTypes
from react
package all over your project then check 3 simple regular expressions to find and replace in your project.
Find:
(import.+)(, \{ PropTypes \})(.+'react';)$
(import.+)(PropTypes, )(.+'react';)$
(import.+)(, PropTypes)(.+'react';)$
Replace: