Getting Type error using Angular Material
up vote
9
down vote
favorite
I am new for Angular and have installed angular material. I have tried for datepicker and its showing me this error :
MdInputContainer.html:1 ERROR TypeError: this.engine.setProperty is not a function
at AnimationRenderer.webpackJsonp.../../../platform-browser/@angular/platform-browser/animations.es5.js.AnimationRenderer.setProperty (animations.es5.js:502)
at DebugRenderer2.webpackJsonp.../../../core/@angular/core.es5.js.DebugRenderer2.setProperty (core.es5.js:13781)
at setElementProperty (core.es5.js:9443)
at checkAndUpdateElementValue (core.es5.js:9362)
at checkAndUpdateElementInline (core.es5.js:9296)
at checkAndUpdateNodeInline (core.es5.js:12375)
at checkAndUpdateNode (core.es5.js:12321)
at debugCheckAndUpdateNode (core.es5.js:13182)
at debugCheckRenderNodeFn (core.es5.js:13161)
at Object.eval [as updateRenderer] (MdInputContainer.html:1)
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {AppRoutingModule} from './app-routing.module';
import { NavigationComponent } from './navigation/navigation.component';
import { HomeComponent } from './home/home.component';
import { EditComponent } from './edit/edit.component';
import { AddComponent } from './add/add.component';
import { ShowComponent } from './show/show.component';
import { EmpService } from './emp.service';
import 'hammerjs';
import { AppComponent } from './app.component';
import {
MdAutocompleteModule,
MdButtonModule,
MdButtonToggleModule,
MdCardModule,
MdCheckboxModule,
MdChipsModule,
MdCoreModule,
MdDatepickerModule,
MdDialogModule,
MdExpansionModule,
MdGridListModule,
MdIconModule,
MdInputModule,
MdListModule,
MdMenuModule,
MdNativeDateModule,
MdPaginatorModule,
MdProgressBarModule,
MdProgressSpinnerModule,
MdRadioModule,
MdRippleModule,
MdSelectModule,
MdSidenavModule,
MdSliderModule,
MdSlideToggleModule,
MdSnackBarModule,
MdSortModule,
MdTableModule,
MdTabsModule,
MdToolbarModule,
MdTooltipModule,
} from '@angular/material';
import {CdkTableModule} from '@angular/cdk';
@NgModule({
declarations: [
AppComponent,
NavigationComponent,
HomeComponent,
EditComponent,
AddComponent,
ShowComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule ,
MdDatepickerModule,
MdNativeDateModule,
MdInputModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
AppRoutingModule
],
providers: [EmpService],
bootstrap: [AppComponent]
})
export class AppModule { }
HTML
<md-input-container>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date">
<button mdSuffix [mdDatepickerToggle]="picker"></button>
</md-input-container>
<md-datepicker #picker></md-datepicker>
I have take reference from the official website of it and functionality working properly but i want to resolve the errors.
Thank you.
angular angular-material2
|
show 1 more comment
up vote
9
down vote
favorite
I am new for Angular and have installed angular material. I have tried for datepicker and its showing me this error :
MdInputContainer.html:1 ERROR TypeError: this.engine.setProperty is not a function
at AnimationRenderer.webpackJsonp.../../../platform-browser/@angular/platform-browser/animations.es5.js.AnimationRenderer.setProperty (animations.es5.js:502)
at DebugRenderer2.webpackJsonp.../../../core/@angular/core.es5.js.DebugRenderer2.setProperty (core.es5.js:13781)
at setElementProperty (core.es5.js:9443)
at checkAndUpdateElementValue (core.es5.js:9362)
at checkAndUpdateElementInline (core.es5.js:9296)
at checkAndUpdateNodeInline (core.es5.js:12375)
at checkAndUpdateNode (core.es5.js:12321)
at debugCheckAndUpdateNode (core.es5.js:13182)
at debugCheckRenderNodeFn (core.es5.js:13161)
at Object.eval [as updateRenderer] (MdInputContainer.html:1)
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {AppRoutingModule} from './app-routing.module';
import { NavigationComponent } from './navigation/navigation.component';
import { HomeComponent } from './home/home.component';
import { EditComponent } from './edit/edit.component';
import { AddComponent } from './add/add.component';
import { ShowComponent } from './show/show.component';
import { EmpService } from './emp.service';
import 'hammerjs';
import { AppComponent } from './app.component';
import {
MdAutocompleteModule,
MdButtonModule,
MdButtonToggleModule,
MdCardModule,
MdCheckboxModule,
MdChipsModule,
MdCoreModule,
MdDatepickerModule,
MdDialogModule,
MdExpansionModule,
MdGridListModule,
MdIconModule,
MdInputModule,
MdListModule,
MdMenuModule,
MdNativeDateModule,
MdPaginatorModule,
MdProgressBarModule,
MdProgressSpinnerModule,
MdRadioModule,
MdRippleModule,
MdSelectModule,
MdSidenavModule,
MdSliderModule,
MdSlideToggleModule,
MdSnackBarModule,
MdSortModule,
MdTableModule,
MdTabsModule,
MdToolbarModule,
MdTooltipModule,
} from '@angular/material';
import {CdkTableModule} from '@angular/cdk';
@NgModule({
declarations: [
AppComponent,
NavigationComponent,
HomeComponent,
EditComponent,
AddComponent,
ShowComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule ,
MdDatepickerModule,
MdNativeDateModule,
MdInputModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
AppRoutingModule
],
providers: [EmpService],
bootstrap: [AppComponent]
})
export class AppModule { }
HTML
<md-input-container>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date">
<button mdSuffix [mdDatepickerToggle]="picker"></button>
</md-input-container>
<md-datepicker #picker></md-datepicker>
I have take reference from the official website of it and functionality working properly but i want to resolve the errors.
Thank you.
angular angular-material2
share yourapp.module.tsand html
– Nehal
Jul 15 '17 at 9:12
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
thanks for adding those files. Could you add thepackage.jsonplease? Seems like something is missing from@angular/corewhich is causing this issue!
– Nehal
Jul 15 '17 at 16:25
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
|
show 1 more comment
up vote
9
down vote
favorite
up vote
9
down vote
favorite
I am new for Angular and have installed angular material. I have tried for datepicker and its showing me this error :
MdInputContainer.html:1 ERROR TypeError: this.engine.setProperty is not a function
at AnimationRenderer.webpackJsonp.../../../platform-browser/@angular/platform-browser/animations.es5.js.AnimationRenderer.setProperty (animations.es5.js:502)
at DebugRenderer2.webpackJsonp.../../../core/@angular/core.es5.js.DebugRenderer2.setProperty (core.es5.js:13781)
at setElementProperty (core.es5.js:9443)
at checkAndUpdateElementValue (core.es5.js:9362)
at checkAndUpdateElementInline (core.es5.js:9296)
at checkAndUpdateNodeInline (core.es5.js:12375)
at checkAndUpdateNode (core.es5.js:12321)
at debugCheckAndUpdateNode (core.es5.js:13182)
at debugCheckRenderNodeFn (core.es5.js:13161)
at Object.eval [as updateRenderer] (MdInputContainer.html:1)
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {AppRoutingModule} from './app-routing.module';
import { NavigationComponent } from './navigation/navigation.component';
import { HomeComponent } from './home/home.component';
import { EditComponent } from './edit/edit.component';
import { AddComponent } from './add/add.component';
import { ShowComponent } from './show/show.component';
import { EmpService } from './emp.service';
import 'hammerjs';
import { AppComponent } from './app.component';
import {
MdAutocompleteModule,
MdButtonModule,
MdButtonToggleModule,
MdCardModule,
MdCheckboxModule,
MdChipsModule,
MdCoreModule,
MdDatepickerModule,
MdDialogModule,
MdExpansionModule,
MdGridListModule,
MdIconModule,
MdInputModule,
MdListModule,
MdMenuModule,
MdNativeDateModule,
MdPaginatorModule,
MdProgressBarModule,
MdProgressSpinnerModule,
MdRadioModule,
MdRippleModule,
MdSelectModule,
MdSidenavModule,
MdSliderModule,
MdSlideToggleModule,
MdSnackBarModule,
MdSortModule,
MdTableModule,
MdTabsModule,
MdToolbarModule,
MdTooltipModule,
} from '@angular/material';
import {CdkTableModule} from '@angular/cdk';
@NgModule({
declarations: [
AppComponent,
NavigationComponent,
HomeComponent,
EditComponent,
AddComponent,
ShowComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule ,
MdDatepickerModule,
MdNativeDateModule,
MdInputModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
AppRoutingModule
],
providers: [EmpService],
bootstrap: [AppComponent]
})
export class AppModule { }
HTML
<md-input-container>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date">
<button mdSuffix [mdDatepickerToggle]="picker"></button>
</md-input-container>
<md-datepicker #picker></md-datepicker>
I have take reference from the official website of it and functionality working properly but i want to resolve the errors.
Thank you.
angular angular-material2
I am new for Angular and have installed angular material. I have tried for datepicker and its showing me this error :
MdInputContainer.html:1 ERROR TypeError: this.engine.setProperty is not a function
at AnimationRenderer.webpackJsonp.../../../platform-browser/@angular/platform-browser/animations.es5.js.AnimationRenderer.setProperty (animations.es5.js:502)
at DebugRenderer2.webpackJsonp.../../../core/@angular/core.es5.js.DebugRenderer2.setProperty (core.es5.js:13781)
at setElementProperty (core.es5.js:9443)
at checkAndUpdateElementValue (core.es5.js:9362)
at checkAndUpdateElementInline (core.es5.js:9296)
at checkAndUpdateNodeInline (core.es5.js:12375)
at checkAndUpdateNode (core.es5.js:12321)
at debugCheckAndUpdateNode (core.es5.js:13182)
at debugCheckRenderNodeFn (core.es5.js:13161)
at Object.eval [as updateRenderer] (MdInputContainer.html:1)
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {AppRoutingModule} from './app-routing.module';
import { NavigationComponent } from './navigation/navigation.component';
import { HomeComponent } from './home/home.component';
import { EditComponent } from './edit/edit.component';
import { AddComponent } from './add/add.component';
import { ShowComponent } from './show/show.component';
import { EmpService } from './emp.service';
import 'hammerjs';
import { AppComponent } from './app.component';
import {
MdAutocompleteModule,
MdButtonModule,
MdButtonToggleModule,
MdCardModule,
MdCheckboxModule,
MdChipsModule,
MdCoreModule,
MdDatepickerModule,
MdDialogModule,
MdExpansionModule,
MdGridListModule,
MdIconModule,
MdInputModule,
MdListModule,
MdMenuModule,
MdNativeDateModule,
MdPaginatorModule,
MdProgressBarModule,
MdProgressSpinnerModule,
MdRadioModule,
MdRippleModule,
MdSelectModule,
MdSidenavModule,
MdSliderModule,
MdSlideToggleModule,
MdSnackBarModule,
MdSortModule,
MdTableModule,
MdTabsModule,
MdToolbarModule,
MdTooltipModule,
} from '@angular/material';
import {CdkTableModule} from '@angular/cdk';
@NgModule({
declarations: [
AppComponent,
NavigationComponent,
HomeComponent,
EditComponent,
AddComponent,
ShowComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule ,
MdDatepickerModule,
MdNativeDateModule,
MdInputModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
AppRoutingModule
],
providers: [EmpService],
bootstrap: [AppComponent]
})
export class AppModule { }
HTML
<md-input-container>
<input mdInput [mdDatepicker]="picker" placeholder="Choose a date">
<button mdSuffix [mdDatepickerToggle]="picker"></button>
</md-input-container>
<md-datepicker #picker></md-datepicker>
I have take reference from the official website of it and functionality working properly but i want to resolve the errors.
Thank you.
angular angular-material2
angular angular-material2
edited Jul 15 '17 at 10:00
asked Jul 15 '17 at 8:38
Rush1312
901210
901210
share yourapp.module.tsand html
– Nehal
Jul 15 '17 at 9:12
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
thanks for adding those files. Could you add thepackage.jsonplease? Seems like something is missing from@angular/corewhich is causing this issue!
– Nehal
Jul 15 '17 at 16:25
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
|
show 1 more comment
share yourapp.module.tsand html
– Nehal
Jul 15 '17 at 9:12
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
thanks for adding those files. Could you add thepackage.jsonplease? Seems like something is missing from@angular/corewhich is causing this issue!
– Nehal
Jul 15 '17 at 16:25
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
share your
app.module.ts and html– Nehal
Jul 15 '17 at 9:12
share your
app.module.ts and html– Nehal
Jul 15 '17 at 9:12
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
thanks for adding those files. Could you add the
package.json please? Seems like something is missing from @angular/core which is causing this issue!– Nehal
Jul 15 '17 at 16:25
thanks for adding those files. Could you add the
package.json please? Seems like something is missing from @angular/core which is causing this issue!– Nehal
Jul 15 '17 at 16:25
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
|
show 1 more comment
3 Answers
3
active
oldest
votes
up vote
24
down vote
Try to update angular dependencies.
First, run:
npm outdated
in the folder where your package.json is situated.
If there are outdated dependencies, run:
npm update
I was also facing that problem today, and after updating packages all things started to work nicely.
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
add a comment |
up vote
0
down vote
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
up vote
-1
down vote
Need to make sure all core "@angular/*": "^4.4.5".
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
add a comment |
protected by Community♦ Aug 22 '17 at 20:04
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
24
down vote
Try to update angular dependencies.
First, run:
npm outdated
in the folder where your package.json is situated.
If there are outdated dependencies, run:
npm update
I was also facing that problem today, and after updating packages all things started to work nicely.
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
add a comment |
up vote
24
down vote
Try to update angular dependencies.
First, run:
npm outdated
in the folder where your package.json is situated.
If there are outdated dependencies, run:
npm update
I was also facing that problem today, and after updating packages all things started to work nicely.
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
add a comment |
up vote
24
down vote
up vote
24
down vote
Try to update angular dependencies.
First, run:
npm outdated
in the folder where your package.json is situated.
If there are outdated dependencies, run:
npm update
I was also facing that problem today, and after updating packages all things started to work nicely.
Try to update angular dependencies.
First, run:
npm outdated
in the folder where your package.json is situated.
If there are outdated dependencies, run:
npm update
I was also facing that problem today, and after updating packages all things started to work nicely.
edited Jul 23 '17 at 6:02
Sᴀᴍ Onᴇᴌᴀ
6,50182141
6,50182141
answered Jul 15 '17 at 16:36
Eugene Olisevich
39116
39116
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
add a comment |
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
1
1
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
I ran into the same issue described above as well today after updating @angular/cli. Followed your suggestion of checking for updates and found about 10 were out of date. After updating the error went away. Thanks!
– dc922
Jul 15 '17 at 16:55
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
This one helped me as well! Thanks (Y)
– Faisal
Jul 17 '17 at 13:07
add a comment |
up vote
0
down vote
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
up vote
0
down vote
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
up vote
0
down vote
up vote
0
down vote
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
edited Nov 15 at 8:20
Rumit Patel
1,41042133
1,41042133
answered Nov 15 at 7:03
Harsha
3418
3418
add a comment |
add a comment |
up vote
-1
down vote
Need to make sure all core "@angular/*": "^4.4.5".
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
add a comment |
up vote
-1
down vote
Need to make sure all core "@angular/*": "^4.4.5".
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
add a comment |
up vote
-1
down vote
up vote
-1
down vote
Need to make sure all core "@angular/*": "^4.4.5".
Need to make sure all core "@angular/*": "^4.4.5".
answered Oct 14 '17 at 10:36
Arunprakash Sriram
192
192
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
add a comment |
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
2
2
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
Was it really more easy for you to take printscreen and upload it somewhere, rather than just copy/paste text?
– Styx
Oct 14 '17 at 11:02
add a comment |
protected by Community♦ Aug 22 '17 at 20:04
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
share your
app.module.tsand html– Nehal
Jul 15 '17 at 9:12
@Nehal Please have a look at updated version of question. Both app.module.ts and html code are added now.
– Rush1312
Jul 15 '17 at 10:03
thanks for adding those files. Could you add the
package.jsonplease? Seems like something is missing from@angular/corewhich is causing this issue!– Nehal
Jul 15 '17 at 16:25
This has been solved now.. Thanks.
– Rush1312
Jul 16 '17 at 4:08
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38