react-workspaces / react-workspaces-playground

⚛️ 🐈 Zero Config Create-React-App Monorepos with Yarn Workspaces, Lerna and React Storybook.
https://react-workspaces.github.io/react-workspaces-playground/
764 stars 128 forks source link

Error running create-react-app #1

Closed chertkovalex closed 5 years ago

chertkovalex commented 5 years ago

Hi! Both on Windows and Mac, while running create-react-app --scripts-version @f1lt3r/react-scripts app-foo, I'm getting an error:

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

Error: Cannot find module 'react-dev-utils/chalk'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alexc/dev/app-foo/node_modules/@f1lt3r/react-scripts/scripts/init.js:19:15)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)

Aborting installation.
  node  has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting app-foo/ from /Users/alexc/dev
Done.

Can you suggest how to fix it quickly please? :pray:

F1LT3R commented 5 years ago

create-react-app --scripts-version @f1lt3r/react-scripts@2.1.1-workspaces-04 app-foo

chertkovalex commented 5 years ago

Thanks a lot! 👏 It worked. But could you please modify the readme?

F1LT3R commented 5 years ago

Great! Updated docs.