Angular NG05105: Unexpected synthetic listener @dialogContainer.start found. Please make sure that:
  dOqWse1dTEyO 2023年11月02日 29 0


使用Dialog组件出现动画相关报错

ERROR Error: NG05105: Unexpected synthetic listener @dialogContainer.start found. Please make sure that:
  - Either `BrowserAnimationsModule` or `NoopAnimationsModule` are imported in your application.
  - There is corresponding configuration for the animation named `@dialogContainer.start` defined in the `animations` field of the `@Component` decorator (see https://angular.io/api/core/Component#animations).

修复:
app.module.ts

import { BrowserAnimationsModule } from "@angular/platform-browser/animations";


@NgModule({
  declarations: [...],
  imports: [
    FormsModule,
    BrowserModule,
    ...
    BrowserAnimationsModule,
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {
...


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  f18CFixvrKz8   2024年05月20日   88   0   0 JavaScript
  fxrR9b8fJ5Wh   2024年05月17日   52   0   0 JavaScript
  2xk0JyO908yA   2024年04月28日   40   0   0 JavaScript
dOqWse1dTEyO