I have installed this package @ngx-lite/json-ld. In an attempt to make my SEO schema.org dynamic. On importing the module as specified on this Tutorial I get this error:
ERROR in src/app/app.module.ts(18,21): error TS2339: Property 'forRoot' does not exist on type 'typeof NgxJsonLdModule'.
Here is my app.module
import { NgtUniversalModule } from "@ng-toolkit/universal";
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
// Third Party library
import { NgxJsonLdModule } from "@ngx-lite/json-ld";
import { AppComponent } from "./app.component";
import { AppRoutingModule } from "./app-routing.module";
@NgModule({
declarations: [AppComponent],
imports: [
AppRoutingModule,
NgtUniversalModule,
NgxJsonLdModule.forRoot()
],
providers: []
})
export class AppModule {}
I'm using angular 6.1.9 and Angular Universal.