richnologies / ngx-stripe

Angular 6+ wrapper for StripeJS
MIT License
219 stars 77 forks source link

[BUG] No provider for StripeService #193

Closed PeterKAtTG closed 1 year ago

PeterKAtTG commented 1 year ago

Describe the bug Trying to load a component that has ngx-stripe (StripeService) in it, and it throws an error: ERROR NullInjectorError: R3InjectorError(AppModule)[StripeService -> StripeService -> StripeService]: NullInjectorError: No provider for StripeService!

Using Angular 13, it worked a few months ago, and the same code suddenly stopped working for me. I have not detected any changes that relate to this component or libraries.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Additional context

PeterKAtTG commented 1 year ago

Found the issue, wrong module was loaded resulting in missing NgxStripeModule.