Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Error: Cannot find module 'react-dev-utils/workspaceUtils' #320

Open
KDCinfo opened this issue May 11, 2018 · 8 comments
Open

Error: Cannot find module 'react-dev-utils/workspaceUtils' #320

KDCinfo opened this issue May 11, 2018 · 8 comments

Comments

@KDCinfo
Copy link

KDCinfo commented May 11, 2018

Hi there,

Having recently upgrading to react-scripts-ts@3.0.0 due to an npm audit which recommended the upgrade, I now get a Cannot find module error when trying to start the server. Testing won't run either.

Audit Results:

Run npm install react-scripts-ts@3.0.0 to resolve 80 vulnerabilities

Starting Server:

uuser@ubuntu1:/var/www/html/expired-to-be$ BROWSER=none HTTPS=true npm start

> expired-to-be@2.1.0 start /var/www/html/expired-to-be
> react-scripts-ts start

module.js:559
    throw err;
    ^

Error: Cannot find module 'react-dev-utils/workspaceUtils'
    at Function.Module._resolveFilename (module.js:557:15)
    at Function.Module._load (module.js:484:25)
    at Module.require (module.js:606:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/www/html/expired-to-be/node_modules/react-scripts-ts/config/paths.js:14:22)
    at Module._compile (module.js:662:30)
    at Object.Module._extensions..js (module.js:673:10)
    at Module.load (module.js:575:32)
    at tryModuleLoad (module.js:515:12)
    at Function.Module._load (module.js:507:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! expired-to-be@2.1.0 start: `react-scripts-ts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the expired-to-be@2.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/uuser/.npm/_logs/2018-05-11T10_22_00_007Z-debug.log
  1. npm ls react-scripts-ts (if you haven’t ejected): 3.0.0

  2. node -v: 9.7.1

  3. npm -v: 6.0.1

  4. Operating system: Ubuntu 16.04 x64

I've looked everywhere for a solution to this. I've gone through all the npm up && npm i and npm i --save-dev react-dev-utils, but can't seem to find any way to get past this error.

Thoughts?

Thanks!

@KDCinfo
Copy link
Author

KDCinfo commented May 11, 2018

To remove this as a blocker, I downgraded back to "react-scripts-ts": "2.15.1" (alongside "typescript": "^2.8.3"). The 80 vulnerabilities that were previously prevalent did not return, and the 9 that remained did not trigger GitHub's vulnerability alert.

@tpetrina
Copy link
Contributor

I installed the older version 4.x.x of react-dev-utils manually to resolve the error.

@kevintighe
Copy link

Same problem here. I found that upgrading "react-scripts-ts" to 2.16.0 cleared up the audit warnings and didn't produce this error.

@Nufflee
Copy link

Nufflee commented Jun 14, 2018

Same issue here, 3.0.0 is broken.

@CodeJjang
Copy link

Downgrading react-dev-utils didn't help. Really need 3.0.0 because older versions of jest has bugs.

@mattes3
Copy link

mattes3 commented Sep 27, 2018

Same thing still here. Any news about this?

@ryee-dev
Copy link

Getting the same thing, hoping for an update soon...

@speedy250
Copy link

See this note about this package: facebook/create-react-app#5437

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants