Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: StaticInjectorError(AppModule)[popperDefaults] #125

Open
Dunk14 opened this issue Nov 15, 2019 · 2 comments
Open

Error: StaticInjectorError(AppModule)[popperDefaults] #125

Dunk14 opened this issue Nov 15, 2019 · 2 comments

Comments

@Dunk14
Copy link

Dunk14 commented Nov 15, 2019

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.

@verfault
Copy link

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

@tonysamperi
Copy link

tonysamperi commented Sep 15, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants