-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Milestone
Description
Description
Can't run 'npm run build' command on generated typescript-angular2 directory.
api/ProfileApi.ts(154,82): error TS2305: Module '"/workspace/angular/model/models"' has no exported member 'any'.
api/ProjectApi.ts(470,145): error TS2305: Module '"/workspace/angular/model/models"' has no exported member 'any'.
model/FileEntity.ts(21,19): error TS2305: Module '"/workspace/angular/model/models"' has no exported member 'any'.
model/Job.ts(27,19): error TS2305: Module '"/workspace/angular/model/models"' has no exported member 'any'.
model/ProjectEntity.ts(19,19): error TS2305: Module '"/workspace/angular/model/models"' has no exported member 'any'.
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! @cupix/einstein@0.1.0-SNAPSHOT.201605191652 build: `typings install && tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @cupix/einstein@0.1.0-SNAPSHOT.201605191652 build script 'typings install && tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @cupix/einstein package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install && tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs @cupix/einstein
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls @cupix/einstein
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
Swagger-codegen version
swagger-api version is 2.1.6, and master branch with codegen
Swagger declaration file content or url
http://einstein-stage.cupix.com/api.json
Command line used for generation
java -jar ~/swagger/swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i public/swagger/api.yaml -l typescript-angular2 -c bin/typescript-angular2.json -o ./angular
Steps to reproduce
npm install
npm run build
on the angular directory