akmittal / angular2-datepicker

Angular2 date time picker
https://www.npmjs.com/package/angular2-datepicker
9 stars 17 forks source link

Fail when compiling module #13

Open Emeshka opened 3 years ago

Emeshka commented 3 years ago

I have installed sass-loader, postcss-loader and raw-loader. When I include MyDatePickerModule in app.module.ts imports: ... import {MyDatePickerModule} from 'angular2-datepicker'; imports: [ MyDatePickerModule, ... ] I try to build my application and get this error:

ng build

0% compiling Compiling @angular/core : module as esm5

chunk {main} main.js, main.js.map (main) 623 bytes [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 668 bytes [initial] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 16.3 kB [initial] [rendered] Date: 2021-03-30T10:53:28.063Z - Hash: 8a6f4da178d1281e1abb - Time: 9770ms

WARNING in Entry point '@angular/core' contains deep imports into 'D:/1_documents/graphytica-angular/angular-electron/node_modules/angular2-datepicker/node_modules/rxjs/symbol/observable', 'D:/1_documents/graphytica-angular/angular-electron/node_modules/angular2-datepicker/node_modules/rxjs/Subject', 'D:/1_documents/graphytica-angular/angular-electron/node_modules/angular2-datepicker/node_modules/rxjs/Observable'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

ERROR in Importing unexpected symbol ɵɵinvalidFactory while compiling @angular/core

When I remove import it builds perfectly. So, sorry, I'm just not able to use this component.