ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Warning: The animation trigger "collapseMotion" is attempting to animate the following not animatable properties: overflow

Open kurimuson opened this issue 2 years ago • 20 comments

Reproduction link

https://stackblitz.com/edit/angular-tudsnl?file=src/app/app.component.ts

Steps to reproduce

When nz-menu open or close, console will print this waring.

What is expected?

no warning at animate.

What is actually happening?

animate with warning.

Environment Info
ng-zorro-antd 14.1.1
Browser chrome 103

browser.mjs:2541 Warning: The animation trigger "collapseMotion" is attempting to animate the following not animatable properties: overflow (to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)

kurimuson avatar Oct 19 '22 17:10 kurimuson

我也遇到了 盯一下

wangz-code avatar Nov 11 '22 03:11 wangz-code

Any updates?

string-lzc avatar Apr 23 '23 02:04 string-lzc

me too

chenweihan avatar Apr 27 '23 00:04 chenweihan

...

CamiloB664 avatar May 09 '23 15:05 CamiloB664

Waiting for updates!

akib1997 avatar May 11 '23 06:05 akib1997

同样遇到了,mark 一下

vanswang avatar Jul 18 '23 14:07 vanswang

me too

shalltears avatar Aug 07 '23 03:08 shalltears

16.1.0 有同样的告警

mjunlee avatar Sep 12 '23 05:09 mjunlee

mark,same warning

bloom8848 avatar Sep 21 '23 11:09 bloom8848

ng17+zorro17 also has this issue

qq253498229 avatar Nov 20 '23 02:11 qq253498229

有解决吗

aojiaoxiaolinlin avatar Jan 03 '24 07:01 aojiaoxiaolinlin

用Github build, 会产生 Error: NG05105: Unexpected synthetic property @.disabled found. Please make sure that: - Either BrowserAnimationsModule or NoopAnimationsModule are imported in your application. - There is corresponding configuration for the animation named @.disabled defined in the animations field of the @Component decorator (see https://angular.io/api/core/Component#animations). package.json :
"ng-zorro-antd": "16.2.2" ...

mvcheeyong avatar Jan 22 '24 09:01 mvcheeyong

bump

codypotter avatar Feb 12 '24 18:02 codypotter

用Github build, 会产生 Error: NG05105: Unexpected synthetic property @.disabled found. Please make sure that: - Either BrowserAnimationsModule or NoopAnimationsModule are imported in your application. - There is corresponding configuration for the animation named @.disabled defined in the animations field of the @Component decorator (see https://angular.io/api/core/Component#animations). package.json : "ng-zorro-antd": "16.2.2" ...

If you are getting this error, it is because you haven't imported provideAnimations in your application. Try this in your app.config.ts:

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    provideAnimations()
  ]
};

ParsaArvanehPA avatar Feb 19 '24 11:02 ParsaArvanehPA

Could someone who is using Angular version 16 or 17 verify if this warning persists? I have tested the op's stackblitz in my local project with version 17 and I do not see this warning.

ParsaArvanehPA avatar Feb 19 '24 11:02 ParsaArvanehPA

Could someone who is using Angular version 16 or 17 verify if this warning persists? I have tested the op's stackblitz in my local project with version 17 and I do not see this warning.

After adding provideAnimations() everything is ok!

autogumcom avatar Feb 19 '24 15:02 autogumcom

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    provideAnimations()
  ]
};

Thanks, it doesn't work if i imported provideAnimations() into my app.module.ts, but it works when i imported into my sider.module.ts. Notice: I am using Ng-zorro with my sider component

mvcheeyong avatar Feb 23 '24 11:02 mvcheeyong

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    provideAnimations()
  ]
};

Thanks, it doesn't work if i imported provideAnimations() into my app.module.ts, but it works when i imported into my sider.module.ts. Notice: I am using Ng-zorro with my sider component

Have you by any chance provided BrowserAnimationsModule anywhere in your application? I am asking this because providing it after providing the provideAnimations() might lead to the same behaviour as you described.

ParsaArvanehPA avatar Feb 24 '24 07:02 ParsaArvanehPA

any update on browser.mjs:2541 Warning: The animation trigger "collapseMotion" is attempting to animate the following not animatable properties: overflow (to check the list of all animatable properties

dhananjayspeed avatar Jun 05 '24 09:06 dhananjayspeed