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.

animation trigger "transformMenu" has failed to build

See original GitHub issue

Bug, feature request, or proposal:

Bug or unclear documentation

What is the expected behavior?

Either the same tests work with Angular 5 or there is documentation for a breaking change

What is the current behavior?

I upgraded Angular as detailed below and a unit test started failing

Error: The animation trigger “transformMenu” has failed to build due to the following errors: The provided animation property “transform” is not a supported CSS property for animations The provided animation property “transform” is not a supported CSS property for animations The provided animation property “transform” is not a supported CSS property for animations in http://localhost:9876/_karma_webpack_/vendor.bundle.js (line 21927)

What are the steps to reproduce?

  • Develop a project with the versions below
  • Add many md components to a shared material-module
  • import the module into several components and tests
  • iterate for months observing passing tests
  • upgrade angular as mentioned below
  • observe failing test

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

material 2.0.0-beta.10 angular 4.2.4 cli 1.3.2 TypeScript 2.5 OS Windows 7 (I’m at the office!)

upgraded to angular 5.0.0-beta-7 and test throws as mentioned above

Thanks for Angular Material, team!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:43 (11 by maintainers)

github_iconTop GitHub Comments

98reactions
marcojahncommented, Nov 10, 2017

Sorry, for commenting on a closed issue but got the same error when upgrading to Angular 5 using JEST.

added the following snippet to the “Jest global mocks” list will add the missing behaviour to your JSDom instance.

Object.defineProperty(document.body.style, 'transform', {
  value: () => {
    return {
      enumerable: true,
      configurable: true
    };
  },
});

Bot a perfect solution but still keeps my tests alive 😃

8reactions
patrickmichalinacommented, Sep 30, 2017

I am experiencing this too in Angular 5 rc.0 during Jest unit tests

Read more comments on GitHub >

github_iconTop Results From Across the Web

animation trigger "transformMenu" has failed to build #11044
ERROR Error : The animation trigger "transitionMessages" has failed to build due to the following errors: The provided animation property " ...
Read more >
The animation trigger "transform" has failed to build due to the
0", i am getting below error. Failed: The animation trigger "transform" has failed to build due to the - The provided animation property...
Read more >
Troubleshooting | jest-preset-angular - GitHub Pages
Problems may arise if you're using custom builds (this preset is tailored for angular-cli as firstly ... The animation trigger "transformMenu" has failed​....
Read more >
jest-preset-angular - npm
OnPush is used; The animation trigger "transformMenu" has failed; Absolute imports; Custom tsconfig; Unexpected token [import|export|other].
Read more >
Animations work in Angular 2, but not in Angular 7
Error : The animation trigger "carduser" has failed to build due to the following errors: - The provided animation property "-ms-transform" ...
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