question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rxjs 7 incompatible rxjs-for-await dependency

See original GitHub issue

Current Behavior

After upgrading to @nrwl/angular@14.1.5 npm shows the following warning

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: rxjs-for-await@0.0.2

Expected Behavior

The @nrwl/angular@14.1.5 package should be compatible with rxjs@7

Steps to Reproduce

Create a new angular nx-workspace and upgrade to rxjs@7

Failure Logs

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: rxjs-for-await@0.0.2
npm WARN Found: rxjs@7.5.5
npm WARN node_modules/rxjs
npm WARN   rxjs@"7.5.5" from the root project
npm WARN   19 more (@angular/cdk, @angular/common, @angular/core, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer rxjs@"^6.0.0" from rxjs-for-await@0.0.2
npm WARN node_modules/rxjs-for-await
npm WARN   rxjs-for-await@"0.0.2" from @nrwl/angular@14.1.5
npm WARN   node_modules/@nrwl/angular
npm WARN   1 more (nx)
npm WARN 
npm WARN Conflicting peer dependency: rxjs@6.6.7
npm WARN node_modules/rxjs
npm WARN   peer rxjs@"^6.0.0" from rxjs-for-await@0.0.2
npm WARN   node_modules/rxjs-for-await
npm WARN     rxjs-for-await@"0.0.2" from @nrwl/angular@14.1.5
npm WARN     node_modules/@nrwl/angular
npm WARN     1 more (nx)

### Environment
```log
Node : 16.15.0
   OS   : darwin arm64
   npm  : 8.10.0
   
   nx : 14.1.5
   @nrwl/angular : 14.1.5
   @nrwl/cypress : 14.1.5
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.1.5
   @nrwl/eslint-plugin-nx : 14.1.5
   @nrwl/express : Not Found
   @nrwl/jest : 14.1.5
   @nrwl/js : 14.1.4
   @nrwl/linter : 14.1.5
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : 14.0.3
   @nrwl/nx-plugin : 14.1.4
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.1.5
   @nrwl/web : Not Found
   @nrwl/workspace : 14.1.5
   typescript : 4.6.4
   rxjs : 7.5.5
   ---------------------------------------
   Community plugins:
         @ionic/angular: 6.1.5
         @ng-bootstrap/ng-bootstrap: 11.0.1
         @jscutlery/semver: 2.23.4
         @ngneat/spectator: 10.0.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:11
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
abrevlancommented, Jul 23, 2022

For me, I just ran npm update and it just went away.

It added nearly 600 packages, removed 235, and changed 72. I don’t really know which packages it affected but it works fine for me.

2reactions
gestjcommented, Jun 30, 2022

@ShiJuuRoku https://github.com/nrwl/nx/issues/10308#issuecomment-1131360782

I think issue come with npm 8.10.0 With npm 8.5.0, there is no issue.

Else you can add rxjs-for-await@^1.0.0 as dev-dependency

This worked for me. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

rxjs-for-await - npm
Add async-await for-await loop support to RxJS Observables. Latest version: 1.0.0, last published: a year ago. Start using rxjs-for-await in ...
Read more >
Breaking Changes in Version 7 - RxJS
Experimental support for for await as been removed. Use https://github.com/benlesh/rxjs-for-await instead. rxjs-compat: rxjs/Rx is no longer a valid import ...
Read more >
The State of RxJS. RxJS 7 and Beyond - InDepth.Dev
AsyncIterable objects are now fully supported in an array of RxJS operators and will be accepted anywhere where an observable or a promise...
Read more >
RxJS dependency issue with Scheduler.async - Stack Overflow
This is serves as a singleton pattern because there's usually no need to have multiple AsyncScheduler instances. import { async } from 'rxjs/ ......
Read more >
The RxJS library - Angular
Converting existing code for async operations into observables · Iterating through the values in a stream · Mapping values to different types ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found