I'm using "@angular/core": "^16.2.0", "typescript": "5.1.6", and "ng-jhipster": "0.16.0" in my Angular project. When trying to run the project, I encounter the following error:
app.main.ts:14 Error: Unexpected value 'NgJhipsterModule' imported by the module 'TechAppModule'. Please add an @NgModule annotation.
...
Here's the relevant part of my app.module.ts:
import { JhiEventManager, NgJhipsterModule } from 'ng-jhipster';
...
@NgModule({
imports: [
...
NgJhipsterModule.forRoot({
alertAsToast: false,
i18nEnabled: true,
defaultI18nLang: 'en'
}),
...
],
declarations: [
...
],
providers: [
...,
DialogService,
{
provide: NgbDateParserFormatter,
useClass: NgbDateCustomParserFormatter
}
],
exports: [...],
bootstrap: [JhiMainComponent]
})
export class TechAppModule {}
Has anyone faced a similar issue or can guide me on how to resolve this? I suspect there might be some incompatibility or a missing configuration.