Getting Type error using Angular Material
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.
add a comment |
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.
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
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05
add a comment |
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.
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.
edited Jul 15 '17 at 10:00
Rush1312
asked Jul 15 '17 at 8:38
Rush1312Rush1312
1001210
1001210
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
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05
add a 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
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05
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
@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
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05
add a comment |
3 Answers
3
active
oldest
votes
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
add a comment |
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
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
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
add a comment |
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
add a comment |
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,60682143
6,60682143
answered Jul 15 '17 at 16:36
Eugene OlisevichEugene 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
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
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
add a comment |
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
Updating angular animation to 4.3.0 resolved for me.
npm install --save @angular/animations@4.3.0
add a comment |
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 '18 at 8:20
Rumit Patel
1,83952436
1,83952436
answered Nov 15 '18 at 7:03
HarshaHarsha
4419
4419
add a comment |
add a comment |
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 |
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 |
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 SriramArunprakash 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
@Rush1312 How you fixed this problem can you please help me?
– softsdev
Aug 9 '17 at 12:38
Eugene Olisevich's answer worked for me. try npm outdated to know outdated dependencies and then npm update to update it.
– Rush1312
Aug 24 '17 at 12:05