Skip to content

I'm getting an error as "Invalid provider for the NgModule 'AppModule'" #69

@Harsha-Vardhan-Sai-Ram

Description

@Harsha-Vardhan-Sai-Ram

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

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