No provider for PluginManager #2031
Answered
by
Frortate
ryanbasiltrickett
asked this question in
Q&A
-
|
I need help with this error occurring, why would this be? libs_app_profile_feature_src_index_ts.js:2 ERROR Error: Uncaught (in promise): NullInjectorError: NullInjectorError: No provider for PluginManager!
NullInjectorError: NullInjectorError: No provider for PluginManager!
at NullInjector.get (core.mjs:7493:27)
at R3Injector.get (core.mjs:7914:33)
at R3Injector.get (core.mjs:7914:33)
at R3Injector.get (core.mjs:7914:33)
at injectInjectorOnly (core.mjs:618:33)
at Module.ɵɵinject (core.mjs:622:60)
at Object.InternalDispatcher_Factory [as factory] (ngxs-store.js:169:146)
at R3Injector.hydrate (core.mjs:8015:35)
at R3Injector.get (core.mjs:7903:33)
at injectInjectorOnly (core.mjs:618:33)
at resolvePromise (zone.js:1214:31)
at resolvePromise (zone.js:1168:17)
at zone.js:1281:17
at _ZoneDelegate.invokeTask (zone.js:409:31)
at core.mjs:23896:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:23896:36)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Object.onInvokeTask (core.mjs:24197:33)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Zone.runTask (zone.js:178:47) |
Beta Was this translation helpful? Give feedback.
Answered by
Frortate
Oct 27, 2023
Replies: 2 comments
-
|
@ryanbasiltrickett Did you happen to find a solution? Currently struggling with the same error (while running tests). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I managed to fix this problem by adding beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NgxsModule.forRoot()],
declarations: [],
providers: []
}).compileComponents();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryanbasiltrickett
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mrJelleBeat
I managed to fix this problem by adding
imports: [ NgxsModule.forRoot()], inTestBed.configureTestingModule