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.

Update RxJS dependency for Angular 5+

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Elecashcommented, Nov 8, 2017
2reactions
Madebyspeedstercommented, Jul 12, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

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