Closed dianjuar closed 1 year ago
Also, Angular Language Service in VS Code is not working with brand new workspaces generated with 15.4.1 as well.
Also, Angular Language Service in VS Code is not working with brand new workspaces generated with 15.4.1 as well.
This is a separate issue, can you open it separately?
This is the PR on the Nx Plugin that I maintain. It might be helpful https://github.com/bikecoders/ngx-deploy-npm/pull/448
This problem is fixed on V15.5.1.
The NxPlugin stills need to be fixed to work on Angular Workspaces, though. The function readTargetOptions
is causing a problem. I will open a new issue to specify better the problem
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
An Nx plugin built with Nx V15.4.0 is not detecting projects (at least a library) in an Angular Workspace.
I maintain a NxPlugin called ngx-deploy-npm. The problem is located in the executor "deploy" to publish a library to NPM. When it's executed on an Angular Workspace, it's unable to locate the library.
ngx-deploy-npm, first builds the library before publishing; is here when the problem is located. The exact breakpoint is executing
runExecutor
.Making some debugging seems to be that the parameter
context: ExecutorContext
passed to the executor is not populated correctly, the list of projects is emptyExpected Behavior
It should be able to run
runExecutor
without any problem as it was doing on previous versionsGithub Repo
https://github.com/bikecoders/ngx-deploy-npm
Steps to Reproduce
You will need to run an Nx Plugin executor on an Angular Workspace. That executor must use the function
@nrwl/devkit/runExecutor
.I have a simple script to test this behavior on ngx-deploy-npm, you can use it to reproduce the problem quickly
git clone https://github.com/bikecoders/ngx-deploy-npm
git checkout migrate-nx-15-4
yarn install
npx build
./tools/create-angular-workspace.sh
Nx Report
Failure Logs
Additional Information
Failing Log
https://github.com/bikecoders/ngx-deploy-npm/actions/runs/3767050151/jobs/6404249820
Angular Workspace
The Angular Workspace tested has the following characteristics: