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

Nx create workspace (React Standalone App) is not working in Windows while using --pm=yarn #22383

Closed
2 of 6 tasks
siddharthOtr opened this issue Mar 19, 2024 · 2 comments · Fixed by #29122
Closed
2 of 6 tasks
Assignees
Labels
scope: core core nx functionality type: bug

Comments

@siddharthOtr
Copy link

Current Behavior

Create react standalone app

node version : 18 (using nvm)
I am creating this in D drive of my computer (in C drive its working properly)

npx create-nx-workspace@latest myreactapp --preset=react-standalone --packageManager=yarn

This command results into the following :

  1. Which bundler would you like to use? => Vite
  2. Test runner to use for end to end (E2E) tests => None
  3. Default stylesheet format => SASS
  4. Do you want Nx Cloud to make your CI fast? => Skip for now
  • Installing dependencies with yarn
  • Creating your workspace in myreactapp ( not completed )

NX Failed to create a workspace.

Error: error Command failed with exit code 1.

Expected Behavior

After running command and selecting all the options workspace should be created successfully.

GitHub Repo

No response

Steps to Reproduce

  1. Go to any drive of your computer (Other than C Drive).
  2. open terminal and select node version
    nvm use 18
  3. run the command
    npx create-nx-workspace@latest myreactapp --preset=react-standalone --packageManager=yarn
  4. It will result into Error.

Nx Report

NX   Failed to create a workspace.

Error: error Command failed with exit code 1.

Failure Logs

There is no logs created for this, I have tried to access error logs but it's not creating any error logs.

Package Manager Version

yarn - 1.22.19

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

  1. when creating workspace using older version (eg. 16) instead of @latest then it's working properly.
  2. While using package manager as npm its working properly.
@MaxKless
Copy link
Collaborator

Hey! Thanks for the report. I just wanted to let you know that I've been able to reproduce this and am digging into what could be the root cause... it seems like something is going wrong during the preinstall step.

@siddharthOtr
Copy link
Author

Hi @MaxKless,
Thanks for the update. Is there any fix or workaround available for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: core core nx functionality type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants