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.

@angular/cdk requires rxjs >= v5.0.3 (@angular/material depencency is ^5.0.1)

See original GitHub issue

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

AOT compile should work down to rxjs v5.0.1 (as specified in package.json)

What is the current behavior?

Get the following error during AOT compile using angular-compiler & rollup (specifically using a fork of https://github.com/filipesilva/angular-quickstart-lib)

Error at .../node_modules/@angular/cdk/typings/rxjs/rx-operators.d.ts:11:10: Module '".../node_modules/rxjs/Scheduler"' has no exported member 'IScheduler'.

What are the steps to reproduce?

Don’t have a plunkr since AOT but file that I believe is causing the issue is here: https://github.com/angular/material2/blob/2.0.0-beta.8/src/cdk/rxjs/rx-operators.ts

specifically ln. 12 import {IScheduler} from 'rxjs/Scheduler';

Since CDK requires rxjs Scheduler to export interface IScheduler can we increment the dependency to ^5.0.3 (when IScheduler was added to rxjs)

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/___: v4.1.3 @angular/cdk: v2.0.0-beta.8 @angular/material: v2.0.0-beta.8 rxjs: v5.0.1 typescript: v2.3.4 Win 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
danwulffcommented, Jul 7, 2017

Figured out that my integration tests were utilizing rxjs v5.0.1 (which breaks compile), reopened since package.json in @angular/material has rxjs: ^5.0.1.

Either the depencency in the root package.json should be incremented or the @angular/cdk package.json should have a rxjs dependency added with ^5.0.3 (this seems like the more “proper” way… I think?)

2reactions
vinupdlmcommented, Aug 10, 2017

I upgraded rxjs version from 5.0.1 to 5.0.3. It works. !!! Thank a lot @danwulff

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade from 4.0.0 to 5.0.3 angular using Angular Client 1.5.5 ...
Application not loading in production mode after upgrade from 4.0.0 to 5.0.3 Deployed successfully in DevMode using "ng serve" but fails in ...
Read more >
npm - When upgrading Angular 5 to 6, I get incompatible peer ...
ng update @angular/core Package "@angular/flex-layout" has an incompatible peer dependency to "rxjs" (requires "^5.5.0", would install "6.2.0").
Read more >
@angular/material - npm
Start using @angular/material in your project by running `npm i ... There are 2326 other projects in the npm registry using @angular/material.
Read more >
Web Libraries in Jars - WebJars
angular -formly-templates-material, org.webjars, angular-formly-templates- ... org.webjars.bower, bootstrap-star-rating-fork-boostrap-dependency, 3.5.4.
Read more >
Open Source Declaration for: Extreme Universal Compute ...
@angular-builders/custom-webpack 10.0.1 ... 0.3.5. MIT License convert-source-map v1.7.0. MIT License ... Material Design for Angular.
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