Open wowczarczyk opened 8 years ago
I haven't tried to build it on Windows. But from the log, it might have built despite the warnings? I definitely need to update the readme with information on how to configure and run the server (including the mongodb setup). If you run npm run serve.dev
does the main page load at all?
Yes it does, however the npm output looks as follows:
C:\dev\libs\angular2\examples\angular2-seed-example-mashup>npm run serve.dev
> angular2-seed@0.0.0 serve.dev C:\dev\libs\angular2\examples\angular2-seed-example-mashup
> gulp serve --env dev
[10:08:21] Requiring external module ts-node/register
[10:08:30] Loading task clean all
[10:08:31] Loading task clean dist
[10:08:31] Loading task clean test
[10:08:31] Loading task clean tmp
[10:08:31] Loading task clean server
[10:08:31] Loading task check.versions
[10:08:31] Loading task build.docs
[10:08:32] Loading task serve.docs
[10:08:33] Using gulpfile C:\dev\libs\angular2\examples\angular2-seed-example-mashup\gulpfile.ts
[10:08:33] Starting 'serve'...
[10:08:33] Loading task server.start
[10:08:34] Loading task watch.serve
[10:08:34] Starting 'build.dev'...
[10:08:34] Loading task tslint
[10:08:35] Loading task build.sass.dev
[10:08:36] Loading task build.assets.dev
[10:08:37] Loading task build.js.dev
[10:08:38] Loading task build.index.dev
[10:08:39] Loading task build.server
[10:08:40] Starting 'clean.dist'...
[10:08:40] Deleted -
[10:08:40] Finished 'clean.dist' after 4.26 ms
[10:08:40] Starting 'clean.server'...
[10:08:40] Deleted C:\dev\libs\angular2\examples\angular2-seed-example-mashup\dist\server
[10:08:40] Finished 'clean.server' after 10 ms
[10:08:40] Starting 'tslint'...
[10:08:44] Finished 'tslint' after 4.22 s
[10:08:44] Starting 'build.sass.dev'...
[10:08:44] Finished 'build.sass.dev' after 117 ms
[10:08:44] Starting 'build.assets.dev'...
[10:08:44] Finished 'build.assets.dev' after 243 ms
[10:08:44] Starting 'build.js.dev'...
[10:08:49] Finished 'build.js.dev' after 5.06 s
[10:08:49] Starting 'build.index.dev'...
[10:08:49] gulp-inject 7 files into index.html.
[10:08:49] gulp-inject 4 files into index.html.
[10:08:49] gulp-inject 3 files into index.html.
[10:08:49] Finished 'build.index.dev' after 82 ms
[10:08:49] Starting 'build.server'...
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/CoreOperators.d.ts(22,67): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/CoreOperators.d.ts(72,67): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/CoreOperators.d.ts(77,31): error TS2304: Cannot find name 'PromiseConstructor'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/CoreOperators.d.ts(77,54): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(65,67): error TS2304: Cannot find name 'PromiseConstructor'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(65,88): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(72,84): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(77,38): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(100,66): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(154,66): error TS2304: Cannot find name 'Promise'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(159,31): error TS2304: Cannot find name 'PromiseConstructor'.
C:/dev/libs/angular2/examples/angular2-seed-example-mashup/node_modules/rxjs/Observable.d.ts(159,54): error TS2304: Cannot find name 'Promise'.
server\RtBroker.ts(24,24): error TS2503: Cannot find namespace 'SocketIO'.
server\RtBroker.ts(29,36): error TS2503: Cannot find namespace 'SocketIO'.
server\app.ts(1,26): error TS2307: Cannot find module 'express'.
server\app.ts(2,23): error TS2307: Cannot find module 'path'.
server\app.ts(3,29): error TS2307: Cannot find module 'body-parser'.
server\app.ts(4,25): error TS2307: Cannot find module 'morgan'.
server\app.ts(5,27): error TS2307: Cannot find module 'socket.io'.
server\app.ts(7,20): error TS2307: Cannot find module 'yargs'.
server\app.ts(14,17): error TS2304: Cannot find name 'require'.
server\app.ts(21,13): error TS2304: Cannot find name 'process'.
server\app.ts(22,23): error TS2304: Cannot find name 'process'.
server\app.ts(25,5): error TS2304: Cannot find name 'process'.
server\app.ts(26,28): error TS2304: Cannot find name 'process'.
server\app.ts(29,29): error TS2304: Cannot find name '__dirname'.
server\app.ts(35,35): error TS2304: Cannot find name '__dirname'.
server\app.ts(37,35): error TS2304: Cannot find name '__dirname'.
server\app.ts(50,55): error TS2304: Cannot find name '__dirname'.
server\app.ts(101,19): error TS2304: Cannot find name 'require'.
server\routing\ApiRouting.ts(1,26): error TS2307: Cannot find module 'express'.
server\routing\ApiRouting.ts(2,25): error TS2307: Cannot find module 'multer'.
server\routing\ApiRouting.ts(15,21): error TS2307: Cannot find module 'os'.
server\routing\ApiRouting.ts(16,21): error TS2307: Cannot find module 'fs'.
server\routing\ApiRouting.ts(172,20): error TS2304: Cannot find name 'process'.
server\routing\ApiRouting.ts(285,15): error TS2503: Cannot find namespace 'Q'.
server\services\AnimalPersistenceService.ts(2,20): error TS2307: Cannot find module 'q'.
server\services\AnimalPersistenceService.ts(3,17): error TS2304: Cannot find name 'require'.
server\services\AnimalPersistenceService.ts(4,20): error TS2307: Cannot find module 'underscore'.
server\services\AnimalPersistenceService.ts(8,13): error TS2304: Cannot find name 'process'.
server\services\CellDataPersistenceService.ts(1,20): error TS2307: Cannot find module 'q'.
server\services\CellDataPersistenceService.ts(2,17): error TS2304: Cannot find name 'require'.
server\services\CellDataPersistenceService.ts(4,21): error TS2307: Cannot find module 'fs'.
server\services\CellDataPersistenceService.ts(7,13): error TS2304: Cannot find name 'process'.
server\services\QuizPersistenceService.ts(1,20): error TS2307: Cannot find module 'q'.
server\services\QuizPersistenceService.ts(2,20): error TS2307: Cannot find module 'underscore'.
server\services\QuizPersistenceService.ts(4,17): error TS2304: Cannot find name 'require'.
server\services\QuizPersistenceService.ts(9,13): error TS2304: Cannot find name 'process'.
server\services\QuizPersistenceService.ts(447,52): error TS2339: Property 'sign' does not exist on type 'Math'.
server\services\SecurityService.ts(1,20): error TS2307: Cannot find module 'q'.
server\services\SecurityService.ts(2,25): error TS2307: Cannot find module 'bcrypt'.
server\services\SecurityService.ts(4,17): error TS2304: Cannot find name 'require'.
server\services\SecurityService.ts(9,13): error TS2304: Cannot find name 'process'.
server\services\UserQuestionCreator.ts(1,20): error TS2307: Cannot find module 'q'.
server\services\UserQuestionCreator.ts(2,20): error TS2307: Cannot find module 'underscore'.
server\workers\TrafficService.ts(2,21): error TS2307: Cannot find module 'fs'.
server\workers\TrafficService.ts(3,20): error TS2307: Cannot find module 'underscore'.
server\workers\TrafficService.ts(25,41): error TS2304: Cannot find name 'process'.
[10:08:50] TypeScript: 58 semantic errors
[10:08:50] TypeScript: emit succeeded (with errors)
[10:08:50] Finished 'build.server' after 981 ms
[10:08:50] Finished 'build.dev' after 16 s
[10:08:50] Starting 'server.start'...
[10:08:50] Finished 'server.start' after 132 ms
[10:08:50] Starting 'watch.serve'...
[10:08:51] Finished 'watch.serve' after 187 ms
[10:08:51] Finished 'serve' after 18 s
[BS] Access URLs:
--------------------------------------
Local: http://localhost:5555/
External: http://156.24.57.35:5555/
--------------------------------------
UI: http://localhost:3002
UI External: http://156.24.57.35:3002
--------------------------------------
[BS] Serving files from: dist/dev
Hi Any news on this issue?
npm install
gives the following output (building simple angular2-seed project works fine):