1.1.1 • Published 3 years ago

@virket/website-core v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

Virket's Website core module

Module that implements

  • Types (interfaces)
  • 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 { WebsiteCoreModule } from '@virket/website-core/dist/src';

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    ...
    StoreModule.forRoot({}),
    EffectsModule.forRoot([]),
    ...
    WebsiteCoreModule.forRoot({
      apiUrl: environment.apiUrl,
      instanceName: environment.instanceName
    }),
    ...
  ],
  providers: [
    ...
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

Build npm module errors

error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

Method 1

  • first run: npx ngcc && ngcc -s dist
  • then npm run build

Method 2: disable ivy in tsconfig.ts

  • set in tsconfig.ts
angularCompilerOptions {
  ...
  "enableIvy": false
  ...
}
1.1.1

3 years ago

1.1.0

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

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