-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
All usages of DataPersistence are broken after upgrading to version 8 #1416
Comments
These errors are from the migration? If so, can you please provide a repro of the un-migrated project?
|
I have the same problem, but all my What I find very confusing is the last line of the error message I get:
If I understand that correctly then I'll try to find some time tonight to extract a portion of my project for reproduction purposes. |
The imports were migrated fine for me as well. It is now referencing @nrwl/angular. Also, forgot to add this:
|
ugh. that fixed it. thanks. |
@jasedwards what fixed it? |
Version conflict of rxjs Nx useses version 6.4.0 but the default is 6.5.2 |
@FillScheers @FallenRiteMonk Correct. I fixed it by changing version to ~6.4.0 |
@FillScheers @jasedwards thanks that fixed my problem during the build, but now I get the following error during run time:
|
Today after upgrading to nx 8.0.2 everything worked fine! |
I don't see a version 8.02. I noticed that ngrx will require rxjs version 6.5. will this cause issues here since we have to set it to 6.4? |
@FallenRiteMonk What versions of these are you running? I am running:
I have also ran into the issue where it looks like the
@jasedwards 8.0.2 was released today, it can be installed, doesn't look like they had the release cut and tagged but it was pushed for installation at the time I tried installing it. |
Sorry about this issue. I tried to repro it using 8.0.2 but I could not. @jsonberry Could you create a min repository reproducing the issue? |
@vsavkin I ran into this as well. I think it is a rxjs version mismatch issue. For me this check here: https://github.com/nrwl/nx/blob/master/packages/angular/src/runtime/nx/data-persistence.ts#L439 failed even though debugger showed to me that it was an Observable. Results in the observable being wrapped in another observable. |
@vsavkin While working on a repo for reproduction I noticed that one project was running The project running These versions seem to be working together:
During my update from
☝️ That had not seemed to effect files, so I ran this:
☝️ That updated files, at which point I had started to see this error but I'm no longer able to reproduce it. |
@jsonberry im running the following versions without any problems now:
|
With @ngrx/*@8 and rxjs@6.4.0 I get error: ERROR in node_modules/@ngrx/effects/fesm2015/effects.js 696:25-41
"export 'NotificationKind' was not found in 'rxjs |
@neilhem NgRx v8 requires RxJS v6.5 |
My thinking is then that anybody using nx and ngrx is unable to update to v8 until nx no longer requires version 6.4 or rxjs. Is this correct? |
Fyi, the NgRx team has made some changes that allows us to use RxJS v6.4 |
NgRx 8.0.1 has been released 🚀 |
It looks like NgRx 8.0.1 works with RxJS 6.4, so no changes to Nx required at this moment. If anyone is able to create a small Nx 7 project that cannot be upgraded to Nx 8, could you share it? I'm not able to repro the issue. |
@vsavkin I was able to get it to work completely once NgRx 8.0.1 came out. I just have rxjs hard coded to 6.4. Is there an issue I can follow in nx to know when 6.4 will no longer be necessary? |
Hey folks. Since we upgraded Nx to use NgRx 8.1, I'm going to close this issue. If the issue persists in the latest version of Nx 8+, please reopen the issue and I'll take a look asap. |
my boss wont let me upgrade to angular 8! how do i fix this |
I'm struggling with this issue as while. Below code used to work before I upgraded to Nx 8:
but now I get this error:
Any directions on how to resolve this? Looking at the code I'm actually returning a mapped Action edit: spent a lot of hours on this subject, in the end it appears to be an issue with the following packages: @angular-devkit/core, @angular-devkit/schematics, @nrwl/schematics, @schematics/angular, I started a new clean workspace and noticed none of these packages is added by default (it is all @nrwl/angular now). So I removed them bit by bit from my repo and it solved the problems. |
Had exactly the same problems as described in this topic. What worked for me:
In total: |
I still get the errors in the latest version of NX (8.5). However, I am using only In particular the error
As @jasedwards suggested, I have forced my rxjs to be ^6.4, so |
@philly-vanilly can you share your package.json? i fixed this by creating a clean workspace and then adding new packages one a time. This is how I discovered which packages created the typing errors or dispatched invalid action problem. I definitly has to do with the RxJs package version which is added as dependecy. |
I can repro this with |
I am getting the
|
Ok, so I fixed it by uninstalling |
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. |
Please make sure you have read the submission guidelines before posting an issue
Prerequisites
Please answer the following questions for yourself before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.
Expected Behavior
DataPersistence functions should run as before
Current Behavior
A giant confusing error is thrown (just took as much of screen shot as possible. I have about 100 usages and they are all in error).
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Here is an example though there are many flavors
Context
Please provide any relevant information about your setup:
I just ran ng update.
I know that error screen shot may not be very helpful but I did not see anything in migrations that would give me a hint as to what has changed. Was anything changed that would cause this issue? It broke for every single usage.
The text was updated successfully, but these errors were encountered: