Posts

Showing posts from February 2, 2019

Why Angular 6 app throwing error while deploying for production?

Image
0 I have integrated ngx-Pagination & it working fine when I test it locally but when I run the command as ng build --prod it shows me error ERROR in ./src/app/myads/myads.component.ngfactory.js If anybody knows the solution please answer. app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from "@angular/forms"; import { AppComponent } from './app.component'; import { NgxPaginationModule } from "ngx-Pagination"; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, FormsModule, NgxPaginationModule ], providers: , bootstrap: [AppComponent] }) export class AppModule { } app.component.ts impo