ReactJS:如何找到依赖项,这些依赖项仍然通过主react包使用PropTypes

ReactJS:如何找到依赖项,这些依赖项仍然通过主react包使用PropTypes,reactjs,npm,dependencies,react-proptypes,Reactjs,Npm,Dependencies,React Proptypes,我已经将我的react应用程序(基于meteorJS)更改为prop-types包,但我仍然收到警告警告:通过主react包访问prop-types是不推荐的。改用npm的道具类型包。 因此,我认为存在任何仍然使用“旧”风格的依赖性。但是我如何找到这种依赖性呢 这是控制台给我的: modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:13361 Warning: Accessing PropTypes via the main Reac

我已经将我的react应用程序(基于meteorJS)更改为
prop-types
包,但我仍然收到警告
警告:通过主react包访问prop-types是不推荐的。改用npm的道具类型包。

因此,我认为存在任何仍然使用“旧”风格的依赖性。但是我如何找到这种依赖性呢

这是控制台给我的:

modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:13361 Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
printWarning @ modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:13361
warning @ modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:13385
get @ modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:9932
PropTypes.js @ modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:32612
fileEvaluate @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343
require @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238
index.js @ modules.js?hash=49c6db2db08899db6ed5ab18f5681ac3bb3d8eab:32381
fileEvaluate @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343
require @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238
main.js @ main.js:1
fileEvaluate @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343
require @ modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238
(anonymous) @ app.js?hash=bbc39e8f76f81774071d5c0341cfd78e2baf4ccc:25882

我在目录“node_modules”上使用了简单的文本搜索来搜索可能具有从“react”导入PropTypes的旧样式的行

grep -R "PropTypes.*'react" node_modules/
使用该工具,找到导致grep输出发出警告消息的项目