Skip to content

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

@naveedahmed1

Description

@naveedahmed1

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 angular/angular@73a9ee4 we need to use ComponentFactoryResolver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions