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

create-nx-workspace breaking in windows. again. #18727

Closed
1 of 4 tasks
binaryartifex opened this issue Aug 19, 2023 · 2 comments · Fixed by #18753
Closed
1 of 4 tasks

create-nx-workspace breaking in windows. again. #18727

binaryartifex opened this issue Aug 19, 2023 · 2 comments · Fixed by #18753
Assignees

Comments

@binaryartifex
Copy link

Current Behavior

because nx just flat refuses to build new projects for windows outside of the hard drive the OS is on, im forced to create my workspace on my OS hdd then move it over to my hard drive of choice. that worked well until just recently when i started getting the same errors on the OS hdd as i did on secondary ones. It just exits with Error Code 1 and a path to a generated log file.

Expected Behavior

creating a new project.

GitHub Repo

No response

Steps to Reproduce

  1. using a windows OS pnpm dlx create-nx-workspace --packageManager="pnpm" with following settings
√ Where would you like to create your workspace? · org
√ Which stack do you want to use? · react
√ What framework would you like to use? · nextjs
√ Integrated monorepo, or standalone project? · integrated
√ Application name · web-app
√ Would you like to use the App Router (recommended)? · Yes
√ Test runner to use for end to end (E2E) tests · cypress
√ Default stylesheet format · css
√ Enable distributed caching to make your CI faster · No

Nx Report

Node   : 18.15.0
   OS     : win32-x64
   pnpm   : 8.6.10

   nx               : 16.7.2
   @nx/js           : 16.7.2
   @nrwl/js         : 15.8.6
   @nx/jest         : 16.0.0
   @nrwl/jest       : 15.9.2
   @nx/linter       : 16.7.2
   @nrwl/linter     : 15.8.6
   @nx/workspace    : 16.7.2
   @nrwl/workspace  : 15.8.6
   @nx/cypress      : 16.0.0
   @nrwl/cypress    : 15.9.2
   @nx/devkit       : 16.7.2
   @nrwl/devkit     : 15.8.6
   @nx/next         : 16.7.2
   @nx/react        : 16.7.2
   @nrwl/tao        : 15.8.6
   @nrwl/vite       : 15.8.9
   @nx/web          : 16.7.2
   @nrwl/webpack    : 15.8.7
   typescript       : 5.1.6
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nrwl/[email protected]
     - @nx/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nx/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]

Failure Logs

Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 2, reused 2, downloaded 0, added 0
Progress: resolved 3, reused 2, downloaded 0, added 0
Progress: resolved 107, reused 97, downloaded 0, added 0
Progress: resolved 150, reused 141, downloaded 0, added 0
Progress: resolved 165, reused 156, downloaded 0, added 0
Progress: resolved 179, reused 170, downloaded 0, added 0
Progress: resolved 214, reused 205, downloaded 0, added 0
Progress: resolved 238, reused 229, downloaded 0, added 0
Progress: resolved 261, reused 252, downloaded 0, added 0
Progress: resolved 276, reused 267, downloaded 0, added 0
Progress: resolved 288, reused 279, downloaded 0, added 0
Progress: resolved 313, reused 304, downloaded 0, added 0
Progress: resolved 344, reused 334, downloaded 0, added 0
Progress: resolved 393, reused 383, downloaded 0, added 0
Progress: resolved 433, reused 423, downloaded 0, added 0
Progress: resolved 467, reused 457, downloaded 0, added 0
Progress: resolved 478, reused 468, downloaded 0, added 0
Progress: resolved 479, reused 469, downloaded 0, added 0
Progress: resolved 481, reused 471, downloaded 0, added 0
Progress: resolved 482, reused 472, downloaded 0, added 0
Progress: resolved 483, reused 472, downloaded 0, added 0
Progress: resolved 496, reused 486, downloaded 0, added 0
Progress: resolved 508, reused 491, downloaded 0, added 0
Progress: resolved 537, reused 518, downloaded 0, added 0
Progress: resolved 543, reused 524, downloaded 0, added 0
Progress: resolved 544, reused 524, downloaded 0, added 0
Progress: resolved 546, reused 527, downloaded 0, added 0
Progress: resolved 547, reused 527, downloaded 0, added 0
Packages: +529
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: C:\Users\[omitted]\AppData\Local\pnpm\store\v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 547, reused 528, downloaded 0, added 40
Progress: resolved 547, reused 528, downloaded 0, added 183
Progress: resolved 547, reused 528, downloaded 0, added 397
Progress: resolved 547, reused 528, downloaded 0, added 518
Progress: resolved 547, reused 528, downloaded 0, added 528
Progress: resolved 547, reused 528, downloaded 1, added 528
.../node_modules/@parcel/watcher install$ node-gyp-build
.../node_modules/@parcel/watcher install: Done
.../.pnpm/[email protected]/node_modules/nx postinstall$ node ./bin/post-install
Progress: resolved 547, reused 528, downloaded 1, added 529, done
.../.pnpm/[email protected]/node_modules/nx postinstall: Done

dependencies:
+ @nx/next 16.7.2

devDependencies:
+ @nx/workspace 16.7.2
+ nx 16.7.2

Done in 37.8s

>  NX  Generating @nx/workspace:preset


 >  NX   configurationGenerator is not a function

   Pass --verbose to see the stacktrace.


 >  NX   Workspace creation failed, see above.

   Pass --verbose to see the stacktrace.

Operating System

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

Additional Information

No response

@Cammisuli
Copy link
Member

I couldn't reproduce this fully on my machine. Running create-nx-workspace on the drive with the host OS worked fine, but trying to install on a separate disk failed. #18753 should fix the secondary drive issue though.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants