angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.23k stars 6.7k forks source link

Material2 Doesn't seem to work with Angular 2 RC 2 #693

Closed naveedahmed1 closed 8 years ago

naveedahmed1 commented 8 years ago

Angular Material 2 doesn't seems to work with RC 2.

I made changes to my packages.json and have below dependencies:

"@angular/common": "^2.0.0-rc.2",
    "@angular/compiler": "^2.0.0-rc.2",
    "@angular/core": "^2.0.0-rc.2",
    "@angular/http": "^2.0.0-rc.2",
    "@angular/platform-browser": "^2.0.0-rc.2",
    "@angular/platform-browser-dynamic": "^2.0.0-rc.2",
    "@angular/router": "^2.0.0-rc.2",

    "@angular2-material/core": "2.0.0-alpha.5",
    "@angular2-material/button": "2.0.0-alpha.5",
    "@angular2-material/card": "2.0.0-alpha.5",
    "@angular2-material/checkbox": "2.0.0-alpha.5",
    "@angular2-material/grid-list": "2.0.0-alpha.5",
    "@angular2-material/icon": "2.0.0-alpha.5",
    "@angular2-material/input": "2.0.0-alpha.5",
    "@angular2-material/list": "2.0.0-alpha.5",
    "@angular2-material/progress-bar": "2.0.0-alpha.5",
    "@angular2-material/progress-circle": "2.0.0-alpha.5",
    "@angular2-material/radio": "2.0.0-alpha.5",
    "@angular2-material/sidenav": "2.0.0-alpha.5",
    "@angular2-material/slide-toggle": "2.0.0-alpha.5",
    "@angular2-material/tabs": "2.0.0-alpha.5",
    "@angular2-material/toolbar": "2.0.0-alpha.5",

But when I try to restore packages, I receive below error:

@angular2-material/icon@2.0.0-alpha.5 requires a peer of @angular/http@2.0.0-rc.1 but none was installed

jelbourn commented 8 years ago

The peer dependency thing is just a warning. Does it actually not work?

aquinum6 commented 8 years ago

I don't know about alpha.5 because I'm using alpha.5-2 (you should update).

RC2 and alpha.5-2 seems to work quire fine (i'm using this two together right now). I just noticed one issue which I posted in: #696

medeirosrich commented 8 years ago

I get the same error (using 2.0.0-alpha.5-2) but my application seems to be running fine.

Just ignore it I suppose

jelbourn commented 8 years ago

Closing this for now since people can just ignore the warnings.

naveedahmed1 commented 8 years ago

You are right, application seems to be working despite of these warnings, I need to test it with new form with disableDeprecatedForms()

naveedahmed1 commented 8 years ago

@jelbourn it seems that material form controls are not working with Angular 2 RC 2. I am receiving

EXCEPTION: No value accessor for 'firstName'.

I have tested it on md-input, md-slide-toggle and md-checkbox and I receive below exception on all of them.

EXCEPTION: No value accessor for 'Field name'.

Can you please check and reopen this issue.

aquinum6 commented 8 years ago

https://github.com/angular/material2/issues/696

I posted this issue already.

naveedahmed1 commented 8 years ago

Ok, thanks Piotr, I will follow that.

angular-automatic-lock-bot[bot] commented 4 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.