Material 2 doesn't seem to be compatible with Angular 2 RC 6
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top 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 >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
Using the latest release should resolve this issue, so closing 😃
@naveedahmed1 see #1153