diff --git a/packages/core/src/render3/instructions/animation.ts b/packages/core/src/render3/instructions/animation.ts index 13bed7b3388..90cfad290f0 100644 --- a/packages/core/src/render3/instructions/animation.ts +++ b/packages/core/src/render3/instructions/animation.ts @@ -32,6 +32,8 @@ const areAnimationSupported = (typeof ngServerMode === 'undefined' || !ngServerMode) && typeof document !== 'undefined' && // tslint:disable-next-line:no-toplevel-property-access + typeof document.body !== 'undefined' && + // tslint:disable-next-line:no-toplevel-property-access typeof document.body.getAnimations === 'function'; const noOpAnimationComplete = () => {};