You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ngx-sweetalert2 in an Angular lazy-loaded standalone component, but I'm encountering the following error in the console: NullInjectorError: No provider for _SweetAlert2LoaderService!
.. import { SweetAlert2Module } from '@sweetalert2/ngx-sweetalert2';
I am using
ngx-sweetalert2
in an Angular lazy-loaded standalone component, but I'm encountering the following error in the console:NullInjectorError: No provider for _SweetAlert2LoaderService!
..
import { SweetAlert2Module } from '@sweetalert2/ngx-sweetalert2';
@Component({
..
standalone: true,
imports: [SweetAlert2Module],
..
})
..
How to fix this without adding the
SweetAlert2Module.forRoot()
toimportProvidersFrom([])
inapp.config.ts
?The text was updated successfully, but these errors were encountered: