Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [..., ..., ?[object Object]?, ...]
at throwInvalidProviderError (core.js:5455)
at providerToFactory (core.js:11347)
at providerToRecord (core.js:11318)
at R3Injector.processProvider (core.js:11216)
at core.js:11202
at core.js:1135
at Array.forEach ()
at deepForEach (core.js:1135)
at R3Injector.processInjectorType (core.js:11202)
at core.js:11009
when I run my app I get the following error:
Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [..., ..., ?[object Object]?, ...] at throwInvalidProviderError (core.js:5455) at providerToFactory (core.js:11347) at providerToRecord (core.js:11318) at R3Injector.processProvider (core.js:11216) at core.js:11202 at core.js:1135 at Array.forEach ()
at deepForEach (core.js:1135)
at R3Injector.processInjectorType (core.js:11202)
at core.js:11009
while compilation it didn't show any errors