简体   繁体   English

找不到模块'react-dev-utils / clearConsole'

[英]Cannot find module 'react-dev-utils/clearConsole'

I fetched this kind of error in my react project Can not find module 'react-dev-utils/clearConsole' . 我在我的react项目中找到了此类错误找不到模块'react-dev-utils / clearConsole' React version of my project is 16.2. 我项目的React版本是16.2。 Actually when I install prop-types with npm then I fetched this error and my project was stopped. 实际上,当我使用npm安装prop-type时,我获取了此错误,并且我的项目停止了。 I can not run my project again. 我无法再次运行我的项目。 What is the solution for this? 有什么解决方案?

It looks like you lack some dependencies. 看来您缺乏一些依赖性。 In this particular example it is react-dev-utils . 在此特定示例中,它是react-dev-utils

Simple npm install --save-dev react-dev-utils should do. 简单的npm install --save-dev react-dev-utils应该可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM