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.

Found the synthetic property @flyInOut. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.

See original GitHub issue

Included BrowserAnimations correctly and followed all the steps in the Readme file, but still facing the same issue -->

image

import { BrowserModule, DomSanitizer } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

@NgModule({
imports: [
        BrowserModule,
        BrowserAnimationsModule]
})

FYI…I have implemented a custom toast component.

_Originally posted by @wsh92 in https://github.com/scttcper/ngx-toastr/issues/136#issuecomment-439276200_

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

6reactions
Johncrown56commented, May 23, 2022

If you’re still looking for the solution, do the following;

  1. Import BrowserAnimationsModule to your app.module.ts page. Like this below; import { BrowserAnimationsModule } from ‘@angular/platform-browser/animations’;

  2. Add the module to your list of imports. Like this below; imports: [ BrowserAnimationsModule ]

This should work perfectly.

5reactions
trevor-hackettcommented, Dec 3, 2018

Have you included the animations to your custom component? Components in Angular cannot inherit animations from other components. Although it still somehow causes the error you’ve gotten.

Your best bet is to copy the animations from our Toast component and add it to your custom component and customize it, if desired.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Found the synthetic property @panelState. Please include ...
Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application. Screenshot of error.
Read more >
Getting Error in Angular 8, “ERROR Error: Found the synthetic ...
Please include either “BrowserAnimationsModule” or “NoopAnimationsModule” in your application.” While working on one of the web application ...
Read more >
Error: Found the synthetic property @triggerName. Please ...
Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application. at checkNoSyntheticProp. Add Answer | View In TPC Matrix.
Read more >
Found The Synthetic Property @Panelstate. Please Include ...
Found the synthetic property @panelState. Please include either BrowserAnimationsModule or NoopAnimationsModule in your application.' This error message is.
Read more >
Found the synthetic property @flyInOut. Please include either ...
Found the synthetic property @flyInOut. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.
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