since I upgraded to latests dependencies (removed old node_modules and re-ran npm install;npm build) my angular library no more builds. I see errors like :
Error at /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/src/facade/lang.d.ts:12:17: 'Map' only refers to a type, but is being used as a value here. Error at /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/src/facade/lang.d.ts:13:17: 'Set' only refers to a type, but is being used as a value here. Error at /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/rxjs/Observable.d.ts:68:60: 'Promise' only refers to a type, but is being used as a value here. Error at /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/rxjs/operator/toPromise.d.ts:3:79: 'Promise' only refers to a type, but is being used as a value here. Error at /home/kmoyse/akgsworkspace/kwp-angular2/src/configuration/configuration.service.ts:28:16: 'Promise' only refers to a type, but is being used as a value here. Error at /home/kmoyse/akgsworkspace/kwp-angular2/src/compiled/node_modules/@angular/common/common.ngfactory.ts:11:44: Property 'ɵNgModuleInjector' does not exist on type 'typeof "/home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/index"'. Error at /home/kmoyse/akgsworkspace/kwp-angular2/src/compiled/node_modules/@angular/common/common.ngfactory.ts:13:30: Namespace '"/home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/common/index"' has no exported member 'NgLocaleLocalization'.
My library can be cloned from : git clone https://github.com/akigrafsoft/kwp-angular2
And simply run : npm install npm run build
to reproduce the issue.
Please notice that this used to work before...