Closed evtk closed 4 years ago
I experience the exact same issue (@nrwl/angular
version 8.12.2
):
After downgrading rxjs
to 6.4.0
I get this:
... dispatched an invalid action: {"_isScalar":false,"source"
It's a common problem with having more than one version of RxJS. Could you try the following: https://github.com/nrwl/nx/issues/2458
@vsavkin your fix with npm resolutions worked. After updating to NX 9, it seems it works even without it. I'll close this one up.
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.
Expected Behavior
I can run an upgrade of NX with npm run update, without getting issues with dataPersistance.
Current Behavior
I have spent a lot of time to get the issues I had with RxJS version mismatch solved. See this topic: https://github.com/nrwl/nx/issues/1416#issuecomment-535462018.
Now it has been a while since I had the time to upgrade NX. So coming from "@nrwl/angular": "8.6.0" I am updating to "@nrwl/angular": "8.12.1". But as soon this upgrade is done, I get the same RxJS related errors.
Failure Information (for bugs)
My RxJS version is pinned to 6.5.3. After running the update I get these types of errors:
Type 'Observable<MyAction>' is not assignable to type 'void | Action | Observable<Action>'. Type 'Observable<MyAction>' is not assignable to type 'Observable<Action>'. Types of property 'source' are incompatible. Type 'import("/Users/evtk/Documents/git/my.repo/client/angular/node_modules/rxjs/internal/Observable").Observable<any>' is not assignable to type 'import("/Users/evtk/Documents/git/my.repo/client/angular/node_modules/@nrwl/angular/node_modules/rxjs/internal/Observable").Observable<any>'.
So then I decided to downgrade to the 6.4.0 version of RxJS. This is unwanted, because I have another package explicitly asking for 6.5.3, but just to make sure. After downgrading to RxJS 6.4.0 I have checked my package-lock file and it doesn't contain any references to RxJS 6.5.3. anymore. Now I can build my app, but as soon as I serve it, I get these type of errors again:
... dispatched an invalid action: {"_isScalar":false,"source"
Steps to Reproduce
I can't share my repo because it contains corporate code, but here is my package.json after just running the npm update. I feel that there should be no need to downgrade RxJS.