【问题标题】:What is Angular Animation Version that supports to Angular 5?支持 Angular 5 的 Angular 动画版本是什么?
【发布时间】:2018-08-23 14:47:17
【问题描述】:

我是 Angular 的新手,所以我需要知道什么是适用于 Angular 5 的合适的 Angular Animation。以及我如何安装它。因为最新版本与 Angular 5 不匹配。

或者我无法弄清楚错误是什么。

ERROR TypeError: _this._driver.validateStyleProperty is not a function
at eval (browser.js:874)
at Array.forEach (<anonymous>)
at eval (browser.js:873)
at Array.forEach (<anonymous>)
at AnimationAstBuilderVisitor._validateStyleAst (browser.js:870)
at AnimationAstBuilderVisitor.visitStyle (browser.js:810)
at visitDslNode (browser.js:515)
at AnimationAstBuilderVisitor.visitQuery (browser.js:987)
at visitDslNode (browser.js:523)
at eval (browser.js:755)

【问题讨论】:

    标签: angular angular5 angular-animations


    【解决方案1】:

    好的,我终于找到了答案。使用此命令回滚 Angular Animation 版本 5.2.11 后,此错误已解决

    npm install @angular/animations@5.2.11
    

    【讨论】:

      【解决方案2】:

      你试过这个https://www.npmjs.com/package/@angular/animations

      可能是因为没有正确安装

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-12
        • 2019-09-18
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多