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.

Material 2 doesn't seem to be compatible with Angular 2 RC 6

See original GitHub issue

I recently tried upgrading my project to Angular 2 RC 6 but it seems that Material 2 isn’t compatible with RC 6.

When I try to compile my project with RC 6, I receive the below error:

Error Build:Module '"node_modules/@angular/core/index"' has no exported member 'ComponentResolver'. node_modules\@angular2-material\core\portal\portal-directives.d.ts

As per the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md) ComponentResolver has been depreciated. But since the portal directives uses ComponentResolver , the compiler throws the error.

As per the link https://github.com/angular/angular/commit/73a9ee4 we need to use ComponentFactoryResolver

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
karacommented, Sep 2, 2016

Using the latest release should resolve this issue, so closing 😃

1reaction
m0t0rcommented, Sep 1, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Update to RC6 · Issue #1153 · angular/components · GitHub
Bug, feature request, or proposal: Update to RC6 There is a lot of error with the new ... Material 2 doesn't seem to...
Read more >
Appears in the NgModule.imports of AppModule, but could not ...
My Angular code was in Docker and all the files belonged to "root". Angular couldn't access a file, and gave me this cryptic...
Read more >
Deprecated APIs and features - Angular
This support was deprecated for several reasons. First, developers found this pattern confusing. It seems like the actual ngModel directive is being used,...
Read more >
@angular/material - npm
Angular Material. Latest version: 15.0.3, last published: 11 days ago. Start using @angular/material in your project by running `npm i ...
Read more >
48 answers on StackOverflow to the most popular Angular ...
How can I get new selection in “select” in Angular 2? ... With Observable it doesn't matter if you want to handle 0,...
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