Ngx-bootstrap: BrowserAnimationsModule, should be added to docs and with ng add

Created on 2 May 2019  路  2Comments  路  Source: valor-software/ngx-bootstrap

I get an error when I use collapse on v4.2.0

ng:///AppModule/NavComponent.ngfactory.js:28 ERROR Error: StaticInjectorError(AppModule)[CollapseDirective -> AnimationBuilder]:
StaticInjectorError(Platform: core)[CollapseDirective -> AnimationBuilder]:
NullInjectorError: No provider for AnimationBuilder!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (vendor.js:44162)
at resolveToken (vendor.js:44407)
at tryResolveToken (vendor.js:44351)
at

Most helpful comment

Hello

Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]

All 2 comments

Hello

Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]

Hello

Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]

it's work! thank you. how u know that, has a document for that?

Was this page helpful?
0 / 5 - 0 ratings