Virket Messages core module (interfaces, models, repositories, services, state management and more) for an ionic5 app
npm install @virket/messages-core``typescript
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
...
// Import the module
import { MessagesCoreModule } from '@virket/messages-core/dist/src';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
...
StoreModule.forRoot({}),
EffectsModule.forRoot([]),
...
MessagesCoreModule.forRoot({
apiUrl: environment.apiUrl,
instanceName: environment.instanceName
}),
...
],
providers: [
...
],
bootstrap: [AppComponent]
})
export class AppModule {}
``
- OPTION 1: add this to package.json => scripts:{...}
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
- then run: npm run postinstall
- OPTION 2: In Your "tsconfig.app.json" Add Following Lines:
"angularCompilerOptions": {
...
"enableIvy": false
}