Property 'forRoot' does not exist on type 'typeof NgxJsonLdModule'

hi guys i am getting this error during build project in angular Property "forRoot" does not exist on type "typeof NgxJsonLdModule" error TS2307: Cannot find module "./modules/home/home.module". 6 loadChildren: () => import("./modules/home/home.module").then(m => m.HomeModule)
Ankur Rajput
Asked 11-11-2024
1860

Answer (1)
hi you can use these line of code NgxJsonLdModule.forRoot(); //no need to call forRoot function; @NgModule({ declarations: [AppComponent], imports: [ AppRoutingModule, NgtUniversalModule, NgxJsonLdModule ], providers: [] }) export class AppModule {}
Deepak Sharma
Asked 13-12-2019
45 Likes
Comments
Write comment

Submit your answer