Skip to content

Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) #25

Description

@ratkorle

I have followed the set up instructions on: https://www.npmjs.com/package/angular-gtag

npm i angular-gtag

in app.module.ts:

GtagModule.forRoot({ trackingId: environment.GOOGLE_TAG_ID, trackPageviews: true }),

Angular version: 10.1.1

On ng serve I am getting this error:

ERROR in node_modules/angular-gtag/src/gtag.module.d.ts:4:41 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).
 
 4     static forRoot(config: GtagConfig): ModuleWithProviders;

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