These are chat archives for AngularClass/angular2-webpack-starter

2nd
Aug 2015
Konstantin
@khwerhahn
Aug 02 2015 08:27
could anybody help me to get material design working... I've tried to import it, but without much luck.
<script src="https://rawgit.com/urish/angular2-material-build/master/angular2_material.dev.js"></script>
import {MdInput, MdInputContainer} from 'angular2_material/material';
The error I get: Cannot find module 'angular2_material/material'. (2307)
MAJLGC
@MAJLGC
Aug 02 2015 16:57
webpack-dev-server --- Getting following error in Windows
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 16:58
@MAJLGC can you npm install -g webpack-dev-server
MAJLGC
@MAJLGC
Aug 02 2015 16:59
No c:\Users\MAJLGC\Documents\GitHub\angular2-webpack-starter>webpack-dev-server
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1139:19)
at listen (net.js:1182:10)
at net.js:1280:9
I run "npm install -g webpack-dev-server " with no errors
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:02
the problem for windows seems to be webpack-dev-server. can you run
npm run express-install
npm run express
ok if you’re able to install webpack-dev-server then it might work
osdevisnot
@osdevisnot
Aug 02 2015 17:04
I thought EACCESS was for permissions. Maybe trying port other than 8080 will help?
MAJLGC
@MAJLGC
Aug 02 2015 17:04
Not working...I`ve got same errr after install.
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:06
@MAJLGC can you try the express install? @abhishekisnot you might be right
@MAJLGC after express-install can you run PORT=3000 npm run express if it’s still the same error
MAJLGC
@MAJLGC
Aug 02 2015 17:12

@gdi2290 Yes, I did install express again and i´getting the same error c:\Users\MAJLGC\Documents\GitHub\angular2-webpack-starter>npm run express

angular2-webpack-starter@0.0.0 express c:\Users\MAJLGC\Documents\GitHub\angular2-webpack-starter
set NODE_ENV=development && node ./server/express-server-example.js

events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)

PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:12
EADDRINUSE means you have something running on the same port 8080
@MAJLGC can you run PORT=3000 NODE_ENV=development node ./server/express-server-example.js
MAJLGC
@MAJLGC
Aug 02 2015 17:15
@gdi2290 . SOrry . 8080 was already in use. Express waork OK but "webpack- dev-server" not. c:\Users\MAJLGC\Documents\GitHub\angular2-webpack-starter>webpack-dev-server
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1139:19)
at listen (net.js:1182:10)
at net.js:1280:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:81:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:99:10)-
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:16
@MAJLGC the problem is a permissions one so @abhishekisnot was right
osdevisnot
@osdevisnot
Aug 02 2015 17:17
Webpack-dev-server --port 3000
MAJLGC
@MAJLGC
Aug 02 2015 17:20
@gdi2290 @abhishekisnot . That works perfect. Thanks so much
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:23
awesome! @abhishekisnot thanks for your help I added both errors to FAQ in the readme
osdevisnot
@osdevisnot
Aug 02 2015 17:23
I always wondered why projects like webpack-dev-server and https://github.com/tapio/live-server use 8080
8080 is more for prod servers running on that host serving default address
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:25
ok that makes sense
osdevisnot
@osdevisnot
Aug 02 2015 17:31
angular-class/angular2-webpack-starter@e5ee183
Wow you are fast
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:32
yeah I also have the command line and github open
MAJLGC
@MAJLGC
Aug 02 2015 17:38
@gdi2290 In windows i had to make some changes to set enviromet variables. NODE_ENV= --> set NODE_ENV=
PatrickJS [tipe.io]
@gdi2290
Aug 02 2015 17:45
@MAJLGC thanks, I need to work on the windows envoriment more. I need to get a windows machine to ensure everything works correctly