Ngx-toastr: Toast_Host.ngfactory.js? [sm]:1 ERROR TypeError: this._driver.validateStyleProperty is not a function

Created on 26 Jun 2018  路  5Comments  路  Source: scttcper/ngx-toastr

Toast_Host.ngfactory.js? [sm]:1 ERROR TypeError: this._driver.validateStyleProperty is not a function at Object.keys.forEach.prop (browser.js:1057) at Array.forEach (<anonymous>) at ast.styles.forEach.tuple (browser.js:1056) at Array.forEach (<anonymous>) at AnimationAstBuilderVisitor._validateStyleAst (browser.js:1053) at AnimationAstBuilderVisitor.visitStyle (browser.js:984) at AnimationAstBuilderVisitor.visitState (browser.js:859) at name.toString.split.forEach.n (browser.js:833) at Array.forEach (<anonymous>) at metadata.definitions.forEach.def (browser.js:831)

I already installed ngx-toastr and @angular/animations. I added ToastrModule to import. Any ideas what is wrong?

Most helpful comment

Running an update fixed my issues.

$ ng update @angular/cli
$ ng update @angular/core
$ ng update @angular/animations

All 5 comments

maybe the same thing happening here https://github.com/angular/material2/issues/11875

same problem with me

Running an update fixed my issues.

$ ng update @angular/cli
$ ng update @angular/core
$ ng update @angular/animations

I had the same problem, but the jwoods1 tip helped to solve this error.

Love you jwoods1 thanks bro a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wa1gon picture wa1gon  路  6Comments

crhistianramirez picture crhistianramirez  路  5Comments

harikrishnan-u01 picture harikrishnan-u01  路  6Comments

picninim picture picninim  路  6Comments

rushesh picture rushesh  路  5Comments