question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'react-dev-utils/ignoredFiles'

See original GitHub issue

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

Cannot find module

Environment

  1. node -v: v6.10.0
  2. npm -v: 4.6.1
  3. yarn --version (if you use Yarn): 1.1.0
  4. npm ls react-scripts (if you haven’t ejected): matrr-react-scripts@0.9.6

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version (if relevant): Not relevant

Steps to Reproduce

  1. create-react-app matrr-test --scripts-version matrr-react-scripts
  2. cd matrr-test
  3. yarn start / npm start

Expected Behavior

The app was expected to compile and run, since I just ran start script without modifying anything. It was just a dry run test to see if everything would run.

Actual Behavior

I’ve customized the original react-script to include some other packages I constantly use and published it under matrr-react-script name on npm.

This package does nothing more than install latest versions of Material UI, React Router, Redux and other packages to help development flow. BTW, that’s where the name Matrr comes from (Material UI, Router, Redux).

Then I ran the steps written in Steps to Reproduce section and the result is the following screenshot.

NOTE: I just cleared the terminal (cmder, in my case) before running “yarn start”, but the installation went fine without errors.

image

Reproducible Demo

https://github.com/caiorg/matrr-app

Extra info

It seems the latest published version of react-dev-utils on npm is missing the aforementioned file.

I’ve tried to install just react-dev-utils and it comes without ignoredFiles.js.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ezecafre89commented, Nov 28, 2017

@caiorg, Master is 15 commits ahead of the release.

What I was saying is that you should:

cd your/cloned/fork/path
git stash 
git checkout v1.0.17
git stash pop

And then, from the project you are consuming this custom react-script do:

yarn add file:the/path/to/your/custom/react-scripts

or npm install --save... if you don’t use yarn yet (this needs to be done to update the custom react-scripts)

After doing so, my start script stopped complaining about the ignoredFiles util, and I can confirm that react-scripts package.json still has the react-dev-utils version 4.2.1. I have never changes anything related to that.

0reactions
Timercommented, Nov 28, 2017

Look in your version control history, you need the version of react-dev-utils present when you cloned your repository.

Try "react-dev-utils": "^0.5.2".

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
Read more >
Error: Cannot find module 'default-browser-id' in v.6.5.2 #18268
Describe the bug I think #18157 breaks start-storybook command. > start-storybook -p 1994 node:internal/modules/cjs/loader:936 throw err; ...
Read more >
[Solution] Error: Cannot Find Module "nodemailer" - Courier
This error occurs when you have not installed the nodemailer library in your Node.js application. Solution - Here's How To Resolve It. First,...
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found