ngx-popper icon indicating copy to clipboard operation
ngx-popper copied to clipboard

Error: StaticInjectorError(AppModule)[popperDefaults]

Open Dunk14 opened this issue 5 years ago • 2 comments

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 avatar Nov 15 '19 11:11 Dunk14

@Dunk14 You need include NgxPopperModule in imports of your NgModule with forRoot - NgxPopperModule.forRoot(). Works fine for me.

verfault avatar Jan 23 '20 14:01 verfault

@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

tonysamperi avatar Sep 15 '20 18:09 tonysamperi