TradeMe / ng-defer-load

MIT License
127 stars 37 forks source link

Angular 8 production build error #43

Open rajivkr opened 4 years ago

rajivkr commented 4 years ago

Getting this error when I am building the app for production on angular 8. Seems to be working fine on ng serve image Any help on this. TIA

VirendraMaheta7 commented 3 years ago

I'm also facing same error

Rlcolli4 commented 2 years ago

What version are you running in your application? If you've provided the module correctly in your application and have the right version number (we used version 8.1.0 in our Angular 8 Application) then this error shouldn't occur.

import { DeferLoadModule } from '@trademe/ng-defer-load';
...

@NgModule({
  declarations: [
   ...
  ],
  imports: [
    DeferLoadModule,
    CommonModule,
    ...
  ],
  providers: [...],
})
export class SharedModule { }