@virket/website-core
v1.1.1
Published
Virket Website core module (interfaces, models, repositories, services, state management and more) for an ionic5 app
Downloads
5
Readme
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
...
}