Skip to content

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

Open
@jkeruzec

Description

@jkeruzec

Describe the bug

I wanted to develop a PR, so I cloned react-split-pane repository.
I have done a "yarn" first to install dependencies.
Documentation says to start with "yarn start" but
Yarn start doens't work neither website:start ...

yarn run build:watch is OK

To Reproduce

First :
In documentation, it says yarn start but it doesn't work in root directory ;

react-split-pane>yarn start
yarn run v1.9.4
error Command "start" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Then I tried with :

react-split-pane>yarn website:start
yarn run v1.9.4
$ npm run start --prefix website

> [email protected] start C:\Users\user\git\react-split-pane\website
> node scripts/start.js

internal/modules/cjs/loader.js:550
    throw err;
    ^

Error: Cannot find module 'react-dev-utils/workspaceUtils'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (C:\Users\Julien.Keruzec\git\react-split-pane\website\config\paths.js:4:22)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node scripts/start.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-09-05T13_47_57_423Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior

To have a clear documentation on how to launch yarn lib and example with dependencies to install.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions