Move rxjs to peerDependencies to allow custom versions usage
See original GitHub issueError for client example from https://kamilmysliwiec.gitbooks.io/nest/content/real-time/microservices/basics.html
this.client.send(pattern, data)
.catch((err) => Observable.empty())
[ts] Property 'catch' does not exist on type 'Observable<{}>'.
this does not help
import { Observable } from 'rxjs';
import 'rxjs/add/operator/catch';
skipping via
(<any> this.client).send(pattern, data)
provides error at runtime
[Nest] 9905 - 5/10/2017, 3:44:13 AM [ExceptionsHandler] this.client.send(...).catch is not a function
TypeError: this.client.send(...).catch is not a function
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (1 by maintainers)
Top Results From Across the Web
Move rxjs to peerDependencies to allow custom versions usage ...
I am getting "TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable....
Read more >npm Peer Dependencies - JavaScript inDepth
In this article I clarify what npm Peer Dependencies are and especially when you should use them. Peer Dependencies are listed in the...
Read more >How do I resolve peer dependency error: The package react ...
Use the following command to resolve this when installing the node module. npm install --legacy-peer-deps. if above doesn't work for you then you...
Read more >Building a Library in Angular 11 with Dependencies - Medium
Let's move our ngx-exharts and echarts under dependencies in our library package.json to peerDependencies and copy the same into our ...
Read more >Schematics for libraries - Angular
With your schematics, your users can use ng add to install an initial version of your ... Your library needs a custom Typescript...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @artaommahe, Since
~2.0.0
rxjs is used as apeerDependency
.Looks like an rxjs5 modularity issue.
Making this change in client-prox.d.ts solves the issue it seems:
Might be best to open an issue over on rxjs to see what the preferred solution here is, I’m not entirely sure - though seems like its probably a pretty common issue.