-
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
Ngrx18 migration incomplete - migration for breaking changes are not included #26694
Comments
Thanks for reporting this! Unfortunately, I can't reproduce the issue. Based on the provided information I tried:
After that, the effect files were correctly updated. The Please provide a reproduction so we can troubleshoot the issue. |
@leosvelperez thank you for trying this out. I am looking to do the same as there seems to be an issue with an older migration not being correctly applied. So before going to 17.3.2 I was on 16.4.0. I am now trying locally to go from 17.3.2 first to 18.3.5 before going to the latest version. I saw there were some old migrations added and ported back to include the @ngrx/operators package here: #21417 I don't know if it should have been automatically added by the ngrx 17 to ngrx 18 migration if it wasn't there before. At least that was my expectation. 🤔 So what I did for now I installed the @ngrx/operators package manually, bumping Nx to 18.3.5 and afterwards will try to go through with the update to 19.5.1. I post again once I am done with that experiment. |
@leosvelperez just tried it out. Looks like the migration command ( what I did next
But it looks like the issue is the same. The migration fails once it gets to the migration step for replacing the imports for @ngrx/effects to @ngrx/operators according to the output.
I'll try to create a repro with the nx-examples repository in case your tryout project is not directly available. :) More detailed logs, took some time because I had to replace the confidential stuff.
|
@leosvelperez seems like I found the issue: ngrx/platform#4397 I tried it out and damn it works. After bumping all @ngrx packages to v18.0.1 I have no issues running the migrations. 🥳 This probably means one or more bugfix releases for Nx so the broken Ngrx setup in v18.0.0 is not referenced anymore. Don't shoot the messenger 😄 😉 |
@colinscz thanks for the detective work here! I'll add a migration to bump the version to 18.0.1 or later. For some reason, the NgRx team doesn't include the |
@leosvelperez welcome man, thanks for the quick fix and happy to help :) That is indeed weird. Not sure what the reason is. 🤷🏽♂️ |
…e update list (#27107) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #26694 (cherry picked from commit ebb42b7)
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
Currently some of the ngrx dependencies are automatically updated. As introduced in this PR: https://github.com/nrwl/nx/pull/26549/files
But there are some breaking changes and new packages introduced in certain scenarios that are not yet covered by the migration. This results in the build failing because for example this import right here:
import { concatLatestFrom } from '@ngrx/effects';
is not found anymore and newly reside in the other package:
import { concatLatestFrom } from '@ngrx/operators';
More info here: https://ngrx.io/guide/migration/v18
Could you please add migrations for those scenarios?
I checked the open PRs and issues but I haven't found any planned change for this.
Expected Behavior
Breaking changes from Ngrx migration including changes for some code moved from @ngrx/effects to @ngrx/operators are included in the migrations.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
Unfortunately I cannot provide an exact repo and nx-examples does not use ngrx-store and related packages to that extend.
But happy to help in case I can assist with any additional information.
The text was updated successfully, but these errors were encountered: