For some reason, I am suddenly getting this error out of the blue, with no code changes. Any ideas what would be causing this?
I was able to solve this with adding NgbModule.forRoot()
to my imports,
but now I get this error:
Property 'forRoot' does not exist on type 'typeof NgbModule'.
the application is running fine otherwise.
I've got the same problem with you. I tried to add .forRoot() to NgbModule. Try to configure your @NgModule decorator like this:
imports: [
BrowserModule,
FormsModule,
HttpModule,
RouterModule.forRoot(appRoutes),
NgbModule.forRoot()
]
Hope this help.