nx
nx copied to clipboard
> NX desiredImplicitDeps.filter is not a function
Current Behavior
The application is not getting build while running the command ca-app:serve:alpha-next: It shows an error : > NX desiredImplicitDeps.filter is not a function
Expected Behavior
The application use to build and compile successfully after running ng run ca-app:serve:alpha-next
GitHub Repo
No response
Steps to Reproduce
-
While doing migration from angular 14 to 15, ran the following commands:
-
npm install -g nx@latest
-
npm install -g @angular/[email protected]
-
npm install -g @angular/[email protected]
-
npm update nx --force
-
ng update @angular/[email protected] @angular/[email protected] --force
-
nx migrate latest
-
npm install --force
-
nx migrate --run-migrations
-
ca-app:serve:alpha-next
After running the command ca-app:serve:alpha-next I am getting an error : > NX desiredImplicitDeps.filter is not a function
Note: I do not have any array named desiredImplicitDeps in my application.
Nx Report
> NX desiredImplicitDeps.filter is not a function
Failure Logs
No response
Operating System
- [ ] macOS
- [ ] Linux
- [X] Windows
- [ ] Other (Please specify)
Additional Information
No response
This issue is coming when we upgrade require('@nrwl/cli/lib/decorate-cli').decorateCli(); to require('nx/src/adapter/decorate-cli').decorateCli()
Please note that without this upgrade, npm install throws Error NX Decoration of the Angular CLI did not complete successfully. Hence we upgraded this .
Please suggest the reason and fix for same .
Can you run nx report
and get the output for us? Additionally, if you run with --verbose
do you get a stack trace?
@AgentEnder this issue of different from https://github.com/nrwl/nx/issues/17349 . but after solving one, other fails.
can you help us with this . i am not able to run any command for nx after this new package is used to decorate cli
@AgentEnder yeah same for me, after change path of package to decorate cli i am also not able to run any nx commands
npx nx report
> NX Report complete - copy this into the issue template
Node : 18.16.0
OS : win32 x64
npm : 9.5.1
Hasher : Native
nx : 16.3.2
@nx/js : 16.3.2
@nx/jest : 16.3.2
@nx/linter : 16.3.2
@nx/workspace : 16.3.2
@nx/angular : 16.3.2
@nx/cypress : 16.3.2
@nx/devkit : 16.3.2
@nx/eslint-plugin : 16.3.2
@nx/plugin : 16.3.2
@nx/storybook : 16.3.2
@nrwl/tao : 16.3.2
@nx/web : 16.3.2
@nx/webpack : 16.3.2
nx-cloud : 16.0.5
typescript : 5.0.4
---------------------------------------
Community plugins:
@compodoc/compodoc : 1.1.21
@storybook/angular : 7.1.0-alpha.32
ngx-build-plus : 16.0.0
UPDATE: solved it, had to upgrade nx globally aswell, after nx migrate
is this issue getting any attention? @vsavkin @FrozenPandaz please tag someone who could help us with such errors!
Just to confirm, do you all happen to have implicitDependencies: "*"
anywhere? :eyes:
I suspect this could be the reason you are seeing this error.
I updated the error messaging here. The error above was being thrown while validating workspace configuration when there were implicitDependencies
which were not an array of strings. So it will remain an error, but the error will contain the information necessary to fix it.
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.