Using stepper throws an exception "ERROR TypeError: _this._driver.validateStyleProperty is not a function"
See original GitHub issueBug, feature request, or proposal:
I am using angular 6, I installd the material and I am trying to use the stepper component, like ths:
<mat-horizontal-stepper> <mat-step label="step1">step1</mat-step> <mat-step label="step2">step2</mat-step> </mat-horizontal-stepper>
the app.module imports is like this:
imports: [ BrowserModule, BrowserAnimationsModule, RouterModule.forRoot(appRoutes) , FormsModule, HttpClientModule , FormWizardModule , ArchwizardModule, MatStepperModule ],
but I got the following exception:
NewReqComponent.html:16 ERROR TypeError: _this._driver.validateStyleProperty is not a function at browser.js:844 at Array.forEach (<anonymous>) at browser.js:843 at Array.forEach (<anonymous>) at AnimationAstBuilderVisitor.push../node_modules/@angular/animations/fesm5/browser.js.AnimationAstBuilderVisitor._validateStyleAst (browser.js:840) at AnimationAstBuilderVisitor.push../node_modules/@angular/animations/fesm5/browser.js.AnimationAstBuilderVisitor.visitStyle (browser.js:780) at AnimationAstBuilderVisitor.push../node_modules/@angular/animations/fesm5/browser.js.AnimationAstBuilderVisitor.visitState (browser.js:678) at browser.js:657 at Array.forEach (<anonymous>) at browser.js:655
I tried to debug the issue, I found there is a mismatch between the functions parameters: the bodyNode contains the driver value and the _driver contains the normlizer and the normlizer is empty
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:21 (2 by maintainers)
Top GitHub Comments
After upgrading Angular to 6.0.6 the problem seems to be fixed
temp fix: go to packages.json -> dependencies “@angular/animations”: “6.0.5”, npm install