Select one ... (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement
Modal dialog box should open when button is clicked
Modal does not open and the following error is shown in the web console:
ERROR Error: Found the synthetic listener @fadeDown.done. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.
Angular version: 5.0.3
Clarity version: 0.10.15
OS and version: Windows 10
Browser: [Chrome XX | Firefox XX]
Clarity not support Angular 5 ?
I updated to 4/4/6
First ensure that you have the @angular/animations package by doing this...
npm install --save @angular/animations
and then update your app.module.ts file to reflect the following changes
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
@NgModule({
...
imports: [BrowserAnimationsModule],
...
})
export class YourSuperAwesomeAppModule { }
Voila!
I'm using Clarity Design System's Modal and I only had this problem when adding storybook to my angular application, but the solution is similar.. just add the _BrowserAnimationsModule_ to the _moduleMetadata_ imports and it should work.
export const withDefault = () => ({
component: ModalComponent,
props: { ... },
moduleMetadata: {
imports: [ ..., BrowserAnimationsModule ],
},
});
Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Most helpful comment
First ensure that you have the
@angular/animationspackage by doing this...npm install --save @angular/animationsand then update your
app.module.tsfile to reflect the following changesVoila!