PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

npm start fails

Open b0bi79 opened this issue 10 years ago • 9 comments

I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository

Do you want to request a feature or report a bug? Bug

What is the current behavior? npm start fails

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

On clean project when I run npm start: ... [759] ./src/app/app.style.css 160 bytes {4} [built] [0] 4274ms -> [549] 52ms -> [542] 270ms -> factory:640ms building:970ms = 6206ms [760] ./src/app/home/home.style.css 51 bytes {4} [built] [0] 4274ms -> [552] 23ms -> [378] 68ms -> [375] 21ms -> [544] 60ms -> [543] 749ms -> factory:889ms building:127ms = 6211ms Child html-webpack-plugin for "index.html": chunk {0} index.html 525 kB [rendered] [0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 2.06 kB {0} [built] factory:33ms building:40ms = 73ms [1] ./~/lodash/lodash.js 523 kB {0} [built] [0] 73ms -> factory:433ms building:769ms = 1275ms 2/buildin/module.js 251 bytes {0} [built] [0] 73ms -> [1] 1202ms -> factory:127ms building:717ms = 2119ms webpack: bundle is now VALID. [default] Checking started in a separate process... [default] D:/Sources/asr/angular2-webpack-starter/node_modules/@angular/common/src/directives/ng_class.d.ts:81:35 Cannot find name 'Set'. [default] D:/Sources/asr/angular2-webpack-starter/node_modules/@angular/common/src/facade/async.d.ts:34:33 Cannot find name 'Promise'. [default] D:/Sources/asr/angular2-webpack-starter/node_modules/@angular/common/src/facade/async.d.ts:35:45 Cannot find name 'Promise'. [default] D:/Sources/asr/angular2-webpack-starter/node_modules/@angular/common/src/facade/lang.d.ts:11:17 Cannot find name 'Map'. ...

My steps: git clone --depth 1 https://github.com/angularclass/angular2-webpack-starter.git cd angular2-webpack-starter npm install npm start

b0bi79 avatar Aug 08 '16 10:08 b0bi79

I'm having this same issue; however, when I actually go to localhost:3000, the site works; I just get this message spew as well. I suspect it is a 3rd party issue (duh), but haven't the faintest idea where to start looking.

scrapcupcake avatar Aug 08 '16 13:08 scrapcupcake

Same for me.

Child html-webpack-plugin for "index.html": chunk {0} index.html 525 kB [rendered] [0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 1.96 kB {0} [built] factory:21ms building:33ms = 54ms [1] ./~/lodash/lodash.js 523 kB {0} [built] [0] 54ms -> factory:195ms building:442ms = 691ms 2/buildin/module.js 251 bytes {0} [built] [0] 54ms -> [1] 637ms -> factory:31ms building:179ms = 901ms webpack: bundle is now VALID. [default] Checking started in a separate process... [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/directives/ng_class.d.ts:81:35 Cannot find name 'Set'. [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/facade/async.d.ts:34:33 Cannot find name 'Promise'. [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/facade/async.d.ts:35:45 Cannot find name 'Promise'. [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/facade/lang.d.ts:11:17 Cannot find name 'Map'. [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/facade/lang.d.ts:12:17 Cannot find name 'Set'. [default] /home/callum/1_develop/angular2-webpack-starter/node_modules/@angular/common/src/facade/lang.d.ts:68:59 ... It continues for other 90 lines, if you guys wants the whole log I can send it.

Btw the server runs

david1983 avatar Aug 08 '16 15:08 david1983

Update - I've switched to branch material2 and I've done a npm install ... npm start worked with no errors

david1983 avatar Aug 08 '16 15:08 david1983

@scrapcupcake I go to localhost:3000 and get Connection broken error.

b0bi79 avatar Aug 08 '16 16:08 b0bi79

@david1983 David, material2 this is older code branch. There's still used typings. In the latest version of the master branch that is already do not have.

b0bi79 avatar Aug 08 '16 17:08 b0bi79

Confirmed on fresh install. ~~What happened to typings?~~

sky-coding avatar Aug 08 '16 18:08 sky-coding

I've got 2 different versions running. the older works fine ( typings 2.0.0-beta). this new one using 1.8.0 typescript has this same issue as above.

richyrb00 avatar Aug 08 '16 19:08 richyrb00

This is resolved by https://github.com/AngularClass/angular2-webpack-starter/commit/f71d4e6495d0cbc8e42549be355e024d6d78f518.

sky-coding avatar Aug 08 '16 22:08 sky-coding

@sky-coding Thank you

b0bi79 avatar Aug 09 '16 06:08 b0bi79