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

Angular 18 standalone - NullInjectorError: No provider for InjectionToken ToastConfig #1029

Open
n3verlate opened this issue Jan 8, 2025 · 0 comments

Comments

@n3verlate
Copy link

n3verlate commented Jan 8, 2025

Hello,
I'm using Angular 18 in standalone with a second Angular project in library mode that takes care of displaying my components.

I use the 19.0.0 version of ngx-toastr. I followed the documentation by adding provideAnimations() and provideToastr() but I still get the error NullInjectorError: No provider for InjectionToken ToastConfig when I call ToastrService in my library.

Does anyone have the same problem or know how to fix it?

Thanks

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

1 participant