Closed eamell closed 1 year ago
Thank you so much for taking the time to explain your problem in detail.
I firmly believe this is an Nx V14.5.4 error. V14.5.8 was the closest version to yours that I could detect the error is not there.
I suggest doing nx migrate 14.5.8
(I believe that's the command) to upgrade your Nx workspace to that specific version. Typically, when between fix versions, there are no migrations to run, so the transition should be seamless.
I want to apologize for the delayed response. I was busy with some other maintenance chores on this project.
If you're curious about how I realize that, here is the explanation:
First, I saw nothing wrong with your configuration, so I thought it was an Nx issue.
I have a command to create an Nx Workspace with a specific version to make manual tests (npx nx create-nx-workspace ngx-deploy-npm VERSION
). So it's easy and fast for me to test whether the plugin works correctly on a specific version. I tried your version and had the same problem so, I started with your workspace version and increased the version until the error was gone.
That is how I could determine the solution.
I'm going to close this one.
If you apply my suggestion and the problem remains, please let me know to figure it out together.
@dianjuar no worries on the delay, this is an open source project so I generally expect that people are doing maintenance in their spare time.
Thank you this worked and thank you for the explanation I found it enlightening.
I am setting up ngx-deploy-npm on an existing library project. We have been just using
npm publish
to publish the library to a custom repository (Sonatype Nexus). I installed ngx-deploy-npm vianpm install --save-dev ngx-deploy-npm
followed bynx generate ngx-deploy-npm:install
and that appears to have worked successfully.However when I run
nx deploy --dry-run
I get the following error:Here is the result of
nx report
:I also tried ngx-deploy-npm versions 4.3.11 (which gave me a completely different error), 5.0.0, and 5.2.0 - 5.1.0 was my last attempt and I'll most likely go back to 5.2.0 since they all had the same result. Playing around when I commented out the lines in actions.js where it does the check for context.projectGraph the dry run went through successfully. I am confident something is wrong with my configuration but I am not really sure what it could be.
Here is my root package.json:
My angular.json:
I will go back to using npm publish however ngx-deploy-npm is a cleaner solution as it doesn't require me to have my CI pipeline CD into an the distribution directory to run the publish from there.
Any help would be much appreciated.