Closed ICEDLEE337 closed 1 year ago
npx nx list
> NX Installed plugins:
@angular-devkit/build-angular (executors)
@nx/cypress (executors,generators)
@nx/jest (executors,generators)
@nx/js (executors,generators)
@nx/linter (executors,generators)
@nx/react (executors,generators)
@nx/web (executors,generators)
@nx/workspace (executors,generators)
nx (executors)
nx-cloud (generators)
> NX Also available:
@nx/angular (executors,generators)
@nx/detox (executors,generators)
@nx/esbuild (executors,generators)
@nx/expo (executors,generators)
@nx/express (generators)
@nx/nest (generators)
@nx/next (executors,generators)
@nx/node (executors,generators)
@nx/plugin (executors,generators)
@nx/react-native (executors,generators)
@nx/rollup (executors,generators)
@nx/storybook (executors,generators)
@nx/vite (executors,generators)
@nx/webpack (executors,generators)
> NX Community Plugins
Looking for a technology / framework not listed above?
There are many excellent plugins matintained by the Nx community.
Search for the one you need here: https://nx.dev/plugins/registry.
> NX Use "nx list [plugin]" to find out more
nx list
currently has some issues with ESM based plugins which is causing it to not find @nx/angular, but this has nothing to do with your issues updating.
You can use nx migrate
in place of ng update
to run migrations. FORCE_NG_UPDATE
just forwards the command straight to Angular CLI, and they don't support Nx workspaces natively so without an angular.json file its going to throw.
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.
Current Behavior
First, thank you for nx. I've used it for years and I truly love it. I hope that you can help me resolve this issue using Angular in nx:
Running
npx nx list @nx/angular
produces error =>@nx/angular is not currently installed
. This occurs even after runningnpm install -D @nx/angular && npx nx g @nx/angular:init
. Moreover,npx nx list
confirms that@nx/angular
is not installed EVEN THOUGH IT'S IN THE PACKAGE.JSON/NX.JSON.Generally speaking, I can't run
ng
commands (likeng update
).Specifically, there is no way to update angular because using
ng update
fails with error =>Error: This command is not available when running the Angular CLI outside a workspace.
. Andnpx nx update
produces a large message =>But sadly enough, following the instructions in that large block of text and running
FORCE_NG_UPDATE=true ng update
produces the same error =>Error: This command is not available when running the Angular CLI outside a workspace.
.Expected Behavior
ng update
actually executes the update instead of producing the error =>Error: This command is not available when running the Angular CLI outside a workspace.
GitHub Repo
https://github.com/nrwl/nx-examples
Steps to Reproduce
git clone https://github.com/nrwl/nx-examples
cd nx-examples
npm install
npx ng update
# errorsnpx nx update
# prints a lot of text but does nothingnpx nx list
# shows that@nx/angular
isn't installedNx Report
Failure Logs
Operating System
Additional Information
v18.10.0 (npm v8.19.2) nx@16 ng@16