Update RxJS dependency for Angular 5+
See original GitHub issueDescription
Since Angular release version 5, they use Typescript 2.4.2. So you should update RxJS dependency upper than 5.4.3 😄 Ref: https://github.com/ReactiveX/rxjs/pull/2722
Actual Behavior
With Angular 5.0.0 (Typescript 2.4.2) & Angular cli 1.5.0
ERROR in node_modules/videogular2/node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
Types of property 'lift' are incompatible.
Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
Type 'Observable<T>' is not assignable to type 'Observable<R>'.
Type 'T' is not assignable to type 'R'.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Angular upgrade 11 to 13 RXJS dependency - Stack Overflow
First up, RxJS 7.4 is now the default for apps created with ng new. Existing apps using RxJS v6.x will have to manually...
Read more >Angular Update Guide
Remove deprecated RxJS 5 features using rxjs-tslint auto update rules ... Once you and all of your dependencies have updated to RxJS 6,...
Read more >rxjs - npm
Start using rxjs in your project by running `npm i rxjs`. There are 29969 other projects in the npm registry using rxjs.
Read more >How To Update Angular CLI To Latest Version
Once all of your dependencies have updated to latest RxJS 6, remove rxjs-compat package as it increases bundle size. npm uninstall rxjs-compat ...
Read more >Installation Instructions - RxJS
You can enable support for using the ES2015 RxJS code by configuring a bundler to use the es2015 custom export condition during module...
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 Free
Top 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
@LFonsi it seems that @jorgeucano did it first 😄
https://github.com/videogular/videogular2/pull/638
Hi guys … how can i fix it
ViewMoviePageComponent.html:44 ERROR TypeError: rxjs_1.fromEvent is not a function at VgControls.ngOnInit (vg-controls.js:22) at checkAndUpdateDirectiveInline (core.js:12364) at checkAndUpdateNodeInline (core.js:13888) at checkAndUpdateNode (core.js:13831) at debugCheckAndUpdateNode (core.js:14724) at debugCheckDirectivesFn (core.js:14665) at Object.eval [as updateDirectives] (ViewMoviePageComponent.html:57) at Object.debugUpdateDirectives [as updateDirectives] (core.js:14650) at checkAndUpdateView (core.js:13797) at callViewAction (core.js:14148)
that’s what happen when i try to use controls videogular2