1.0.4 • Published 4 years ago

@virket/messages-core v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Virket's Messages core module

Messages module that implements

  • Contact types (interfaces)
  • Contact Model
  • Repository
  • Service
  • State management (actions, effects, reducers, selectors)

Using your module in an Ionic 5 app

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 {}

Compile this module

https://stackoverflow.com/questions/60290309/error-ng6002-appears-in-the-ngmodule-imports-of-appmodule-but-could-not-be-res

  • 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 }

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago