Skip to content

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

@n3verlate

Description

@n3verlate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions