since upgraded latests dependencies (removed old node_modules , re-ran npm install;npm build) angular library no more builds. see errors :
error @ /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/src/facade/lang.d.ts:12:17: 'map' refers type, being used value here. error @ /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/src/facade/lang.d.ts:13:17: 'set' refers type, being used value here. error @ /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/rxjs/observable.d.ts:68:60: 'promise' refers type, being used value here. error @ /home/kmoyse/akgsworkspace/kwp-angular2/node_modules/rxjs/operator/topromise.d.ts:3:79: 'promise' refers type, being used value here. error @ /home/kmoyse/akgsworkspace/kwp-angular2/src/configuration/configuration.service.ts:28:16: 'promise' refers type, being used value here. error @ /home/kmoyse/akgsworkspace/kwp-angular2/src/compiled/node_modules/@angular/common/common.ngfactory.ts:11:44: property 'ɵngmoduleinjector' not exist on type 'typeof "/home/kmoyse/akgsworkspace/kwp-angular2/node_modules/@angular/core/index"'. error @ /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 cloned : git clone https://github.com/akigrafsoft/kwp-angular2
and run : npm install npm run build
to reproduce issue.
please notice used work before...
helo, fixed issues removing compiled directory src , updating tsconfig.json :
"compileroptions": { "target": "es5", "module": "es2015", "skiplibcheck": true, "typeroots": [ "./node_modules/@types" ], "lib": [ "dom", "es2015" ] },
and :
"angularcompileroptions": { "gendir": "../compiled" }
Comments
Post a Comment