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

Unable to use yarn create inside workspace repo #4906

Closed
kristinn93 opened this issue Nov 11, 2017 · 4 comments
Closed

Unable to use yarn create inside workspace repo #4906

kristinn93 opened this issue Nov 11, 2017 · 4 comments
Assignees
Labels

Comments

@kristinn93
Copy link

Do you want to request a feature or report a bug? Bug

What is the current behavior?
Unable to run yarn create react-app inside workspaces.
I get the following error:

Aborting installation.
Unexpected error. Please report it as a bug:
{ Error: Cannot find module '/Users/repo/packages/test/node_modules/react-scripts/package.json'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at checkNodeVersion (/usr/local/lib/node_modules/create-react-app/createReactApp.js:488:23)
    at getPackageName.then.then.then.packageName (/usr/local/lib/node_modules/create-react-app/createReactApp.js:295:7)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7) code: 'MODULE_NOT_FOUND' }

If the current behavior is a bug, please provide the steps to reproduce.

  1. Create a new repo with yarn workspaces
  2. Go to the packages folder and run yarn create react-app test

What is the expected behavior? Should be able to use create-react-app inside workspace to bootstrap a new webproject

Please mention your node.js, yarn and operating system version.
node: v8.9.0
yarn: 1.3.2
macOS High Sierra
Version 10.13.1 (17B48)

@iansu
Copy link
Contributor

iansu commented May 12, 2018

Does yarn create work for you with any other packages? I'm just wondering if this is a Yarn bug or a Create React App bug.

@kristinn93
Copy link
Author

@iansu This seems to be a create-react-app bug, this worked fine with create-vue-app

@iansu
Copy link
Contributor

iansu commented May 14, 2018

That's what I was afraid of. Can you create a new issue in Create React App so we can look into it?

@kristinn93
Copy link
Author

Found the same issue there, I'll close this one 👍

facebook/create-react-app#3031
facebook/create-react-app#3405

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

No branches or pull requests

3 participants