Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jordyvandomselaar opened this issue Jan 1, 2018 · 1 comment
Closed

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

jordyvandomselaar opened this issue Jan 1, 2018 · 1 comment

Comments

@jordyvandomselaar
Copy link

Hey there, I had decided to make a fork of this repo as to create my own default template that is scaffolded when running create-react-app, I've only changed things like app.js, and I've added the styled-component package. My version runs off the master branch. Is there a specific branch to use for this?

Is this a bug report?

(write your answer here)
yes.

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

Yes.

(Write your answer here.)
I've tried both npm 4 & npm 5, by running them, and by running yarn both times.

Which terms did you search for in User Guide?

(Write your answer here if relevant.)
ignoredfiles

Environment

  1. node -v: 8.8.1
  2. npm -v: 4.6.1
  3. yarn --version (if you use Yarn): 1.2.1
  4. npm ls react-scripts (if you haven’t ejected): (empty)

Then, specify:

  1. Operating system: Mac OS High Sierra
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. Fork create-react-app
  2. Make changes in the default project template
  3. Use said template
  4. Run yarn start.

Expected Behavior

(Write what you thought would happen.)

I'd expect it to run my app.

Actual Behavior

(Write what happened. Please add screenshots!)

I get the following error + stacktrace;

yarn start
yarn run v1.2.1
$ react-scripts start
module.js:515
    throw err;
    ^

Error: Cannot find module 'react-dev-utils/ignoredFiles'
    at Function.Module._resolveFilename (module.js:513:15)
    at Function.Module._load (module.js:463:25)
    at Module.require (module.js:556:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jordy/projects/editor/frontend/node_modules/jordy-react-scripts/config/webpackDevServer.config.js:13:22)
    at Module._compile (module.js:612:30)
    at Object.Module._extensions..js (module.js:623:10)
    at Module.load (module.js:531:32)
    at tryModuleLoad (module.js:494:12)
    at Function.Module._load (module.js:486:3)
    at Module.require (module.js:556:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/jordy/projects/editor/frontend/node_modules/jordy-react-scripts/scripts/start.js:40:31)
    at Module._compile (module.js:612:30)
    at Object.Module._extensions..js (module.js:623:10)
    at Module.load (module.js:531:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@Timer
Copy link
Contributor

Timer commented Jan 1, 2018

These changes haven't been released yet, when you fork, you most likely want to reset to the last tagged version -- or publish version of all modules yourself.

@Timer Timer closed this as completed Jan 1, 2018
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants