-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nx16 - Angular 16 not updated to the latest with warning (yarn 3) #17642
Comments
I can see your workspace is already on version |
I saw the same non-updatable with migration from Nx15, but I can wait and recheck when commit lands |
@Coly010 @leosvelperez Issue is still reproducible with my repository, even after 16.14.0 release |
@Lonli-Lokli I took a closer look at your repo and the Angular dependencies are not being updated because they are detached from Nx. It looks like you added Nx to the repo with the latest Nx version at the time, and that version was already ahead of the Angular version you were using. Nx In your workspace, if you want to update your Angular versions and keep them up to date, you can run:
There, we are telling the migrate command to update Nx as if the Please note that's something you only need to do when your Angular version is detached from the Nx version (behind the latest Angular version Nx comes with https://nx.dev/packages/angular/documents/angular-nx-version-matrix#nx-and-angular-version-compatibility-matrix). After you perform the above migration to align the Angular version with what Nx comes with, you can continue to use |
As per the warning, I couldn't exactly reproduce it. Nx successfully installed the latest version (this is a temp installation of the latest Nx to use the latest version of the So, I had to run the migrations with the local Nx version:
That way, Nx uses the locally installed version to perform the migrations. |
I'm going to close this issue. The Angular versions were not updated because they are detached from the Nx version. Please follow the recommendations in #17642 (comment) to get the version updated and aligned to Nx if that's what you want/need. As a follow-up. I'll look into potentially communicating to users they are using Angular "detached" from Nx when |
Just |
@leosvelperez I've tried your proposal, and the first part was completed successfully (package.json update) Second one, running the migrations from migrations.json, did not
And it's not changed anymore (waited for about 10 minutes) |
@Lonli-Lokli the issue is that your I'd recommend having a look at our defaults here https://github.com/nrwl/nx/blob/master/packages/workspace/src/generators/new/files-integrated-repo/__dot__gitignore and amend your BTW, you don't need to add |
@leosvelperez Thanks, I will try. I have multiple .gitignore files, |
Yeah, I think we have some support for nested |
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
Migration script gives this message and DO NOT update angular to the latest version
Expected Behavior
Latest angular installed, no warnings
GitHub Repo
https://gitlab.com/lonli.lokli/cv-app/-/tree/angular16?ref_type=heads
Steps to Reproduce
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: