-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) #25
Comments
Hello you need to add the type the output will look like this. then try it fixed for me. |
The same with Angular 16. |
after updating my project to angular 16 am facing this issue Error: node_modules/angular-gtag/src/gtag.module.d.ts:4:41 - error NG6005: GtagModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors. 4 static forRoot(config: GtagConfig): ModuleWithProviders; how to fix this is this compatible with angular 16 ? |
Same issue here... I guess there's no fix by the authors, yet? |
Please, try to set "skipLibCheck": true in tsconfig file. |
Same issue here. node_modules/angular-gtag/src/gtag.module.d.ts:4:41 - error NG6005: GtagModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors. 4 static forRoot(config: GtagConfig): ModuleWithProviders; This issue occurred after updating from Angular 15 to Angular 16. It was working fine in Angular 15. |
Same issue here . It was working fine in angular 15 but broke in 16. |
It works for me. Angular 14. |
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:
The text was updated successfully, but these errors were encountered: