ngx-popper
ngx-popper copied to clipboard
Error: StaticInjectorError(AppModule)[popperDefaults]
I already installed ngx-popper in some projects but in this one I get this error:
core.js:15724 ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[popperDefaults]: StaticInjectorError(Platform: core)[popperDefaults]: NullInjectorError: No provider for popperDefaults!
Clearly I'm lost with this error, I don't know what's happening since there is no service to provide in the doc.
It's maybe a bug or I completely forgot to include something.
@Dunk14 You need include NgxPopperModule
in imports of your NgModule with forRoot
- NgxPopperModule.forRoot()
. Works fine for me.
@Dunk14 I actually solved this in my [email protected] no need for extra forRoot! Works with Angular 8 for now, but I'm updating to 9 and 10 in the next few days! PS uses Popper 2!!! demo => https://tonysamperi.github.io/ngx-popperjs