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
When trying to use BsModalService in a standalone component, the injection fails :
NullInjectorError: R3InjectorError(Standalone[_AppComponent])[_BsModalService -> _BsModalService -> _BsModalService -> RendererFactory2]:
NullInjectorError: No provider for RendererFactory2!
at NullInjector.get (core.mjs:1636:21)
at R3Injector.get (core.mjs:3018:27)
at injectInjectorOnly (core.mjs:1096:36)
at ɵɵinject (core.mjs:1102:40)
at Object.BsModalService_Factory [as factory] (ngx-bootstrap-modal.mjs:377:59)
at core.mjs:3136:35
at runInInjectorProfilerContext (core.mjs:867:5)
at R3Injector.hydrate (core.mjs:3135:11)
at R3Injector.get (core.mjs:3009:23)
at R3Injector.get (core.mjs:3018:27)
Hello,
Bug description:
When trying to use
BsModalService
in a standalone component, the injection fails :Plunker/StackBlitz that reproduces the issue: https://stackblitz.com/edit/stackblitz-starters-9ts86x?file=src%2Fmain.ts
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 18.1.1
Angular: 18.2.8
Bootstrap: 5.3.3
Build system: Angular CLI
Expected behavior
It is expected that dependency injection does not fail and that modal service works as expected.
The text was updated successfully, but these errors were encountered: