question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using stepper throws an exception "ERROR TypeError: _this._driver.validateStyleProperty is not a function"

See original GitHub issue

Bug, 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: image the bodyNode contains the driver value and the _driver contains the normlizer and the normlizer is empty image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

35reactions
GuillaumeMilanicommented, Jun 21, 2018

After upgrading Angular to 6.0.6 the problem seems to be fixed

15reactions
mscard02commented, Jun 21, 2018

temp fix: go to packages.json -> dependencies “@angular/animations”: “6.0.5”, npm install

Read more comments on GitHub >

github_iconTop Results From Across the Web

I got _this._driver.validateStyleProperty is not a function
I got an error like this: ERROR TypeError: _this._driver.validateStyleProperty is not a function. Excerpt from my Angular Material module:
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >
How to fix "Uncaught TypeError: x is not a function" in JavaScript
JS Casts 01 - How to fix "Uncaught TypeError : x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/01 for a summary ...
Read more >
angular-library-4testing - UNPKG
asyncIterator) throw new TypeError(\"Symbol. ... n *\n * Use of this source code is governed by an MIT-style license that can be\n *...
Read more >
Viewing online file analysis results for 'vendor-es5.js'
vendor-es5.js. This report is generated from a file or URL submitted to this webservice on August 24th 2020 02:06:40 (UTC) Guest System: Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found