nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.63k stars 2.36k forks source link

Fresh Angular not working with 15.8.0 #15332

Closed Gamewalker closed 1 year ago

Gamewalker commented 1 year ago

Current Behavior

Creating a new Angular standalone app no longer works with version 15.8.0.

npm ERR! notarget No matching version found for @nrwl/webpack@^15.8.0.

Expected Behavior

The npx create-nx-workspace@latest command should be able to create a new project without errors

GitHub Repo

No response

Steps to Reproduce

npx create-nx-workspace@latest

NX Let's create a new workspace [https://nx.dev/getting-started/intro]

√ Choose what to create · angular √ Application name · test √ Default stylesheet format · scss √ Enable distributed caching to make your CI faster · No

Nx Report

The current directory isn't part of an Nx workspace

Failure Logs

>  NX   Command failed: npm install

   Pass --verbose to see the stacktrace.

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @nrwl/webpack@^15.8.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Additional Information

No response

FrozenPandaz commented 1 year ago

It's possible we were in the midsts of publishing. Can you try again please?

Gamewalker commented 1 year ago

Tried a few more times and this time with 15.8.1 and it still doesn't work, but this time a different dependency error:

added 897 packages, and audited 898 packages in 13s

92 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

>  NX  Generating @nrwl/workspace:preset

up to date, audited 86 packages in 490ms

18 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

up to date, audited 86 packages in 453ms

18 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

up to date, audited 86 packages in 513ms

18 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

 >  NX   Cannot find module '@angular-devkit/core'

   Require stack:
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\src\adapter\ngcli-adapter.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\@nrwl\devkit\ngcli-adapter.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\@nrwl\angular\src\generators\application\application.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\@nrwl\angular\generators.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\@nrwl\workspace\src\generators\preset\preset.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\src\config\workspaces.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\src\config\configuration.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\src\command-line\generate.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\src\command-line\nx-commands.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\bin\init-local.js
   - E:\_DEV\projekte\C4Eye\test2\node_modules\nx\bin\nx.js
   Pass --verbose to see the stacktrace.

 >  NX   Workspace creation failed, see above.

   Pass --verbose to see the stacktrace.

npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
slaviki commented 1 year ago

How did you solve this issue? I have the same now with nx 15.8.5

github-actions[bot] commented 1 year ago

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.