ERROR in ./node_modules/ng6-countdown/dist/ng6-countdown-lib/countdown.ngfactory.js
Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\node_modules\ng6-countdown\dist\ng6-countdown-lib'
ERROR in ./src/app/app.module.ngfactory.js
Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\src\app'
ERROR in ./src/app/auction/auction.component.ngfactory.js
Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\src\app\auction'
.module.ts
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AuctionComponent } from './auction.component';
import { AuctionRoutingModule } from './auction-routing.module';
import { TranslateModule } from '@ngx-translate/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { CountDownModule } from 'ng6-countdown/dist/ng6-countdown-lib';
import { CoreModule } from '@app/core';
import { SharedModule } from '@app/shared';
import { MaterialModule } from '@app/material.module';
import { NgxGalleryModule } from 'ngx-gallery';
Angular CLI: 6.1.5 Node: 10.7.0 OS: win32 x64 Angular: 6.1.6 ... animations, common, core, forms, http, language-service ... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.7.5 @angular-devkit/build-angular 0.7.5 @angular-devkit/build-optimizer 0.7.5 @angular-devkit/build-webpack 0.7.5 @angular-devkit/core 0.7.5 @angular-devkit/schematics 0.7.5 @angular/cdk 6.4.7 @angular/cli 6.1.5 @angular/compiler 6.1.1 @angular/compiler-cli 6.1.1 @angular/flex-layout 6.0.0-beta.18 @angular/material 6.4.7 @angular/service-worker 6.1.8 @ngtools/webpack 6.1.5 @schematics/angular 0.7.5 @schematics/update 0.7.5 rxjs 6.3.2 typescript 2.9.2 webpack 4.9.2
ng build --prod Your global Angular CLI version (6.2.3) is greater than your local version (6.1.5). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2018-12-01T09:17:05.522Z Hash: a11d35eb0df05e070cfd Time: 54624ms chunk {0} 0.83ce1480b2e449adc7f8.js () 212 kB [rendered] chunk {1} 1.86131c32b9e3548fcebf.js () 18 kB [rendered] chunk {2} runtime.1ba2b5973a13ee50c3f6.js (runtime) 1.86 kB [entry] [rendered] chunk {3} styles.6245522cc931cf3344b6.css (styles) 59.8 kB [initial] [rendered] chunk {4} polyfills.c00d0bb955c298a4413d.js (polyfills) 59.6 kB [initial] [rendered] chunk {5} main.87e6ac184edd2e22690a.js (main) 1.73 MB [initial] [rendered]
ERROR in ./node_modules/ng6-countdown/dist/ng6-countdown-lib/countdown.ngfactory.js Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\node_modules\ng6-countdown\dist\ng6-countdown-lib' ERROR in ./src/app/app.module.ngfactory.js Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\src\app' ERROR in ./src/app/auction/auction.component.ngfactory.js Module not found: Error: Can't resolve 'countdown' in 'E:\Workspace\IdeaWorkspace\auction-system-client\src\app\auction'
.module.ts import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { AuctionComponent } from './auction.component'; import { AuctionRoutingModule } from './auction-routing.module'; import { TranslateModule } from '@ngx-translate/core'; import { FlexLayoutModule } from '@angular/flex-layout'; import { CountDownModule } from 'ng6-countdown/dist/ng6-countdown-lib'; import { CoreModule } from '@app/core'; import { SharedModule } from '@app/shared'; import { MaterialModule } from '@app/material.module'; import { NgxGalleryModule } from 'ngx-gallery';
@NgModule({ imports: [ CommonModule, AuctionRoutingModule, TranslateModule, FlexLayoutModule, CoreModule, SharedModule, CountDownModule, MaterialModule, NgxGalleryModule ], declarations: [AuctionComponent] }) export class AuctionModule { }
I can't build prod version, any ideas?