How to resolve error with webpack-dev-server? -
this question has answer here:
- webpack-dev-server error on npm start 2 answers
often weird errors, when try run server: npm start. so, dont know how solve this, because there not explanations error node. can whats problem?
on of them is:
> angular-starter@6.0.0 webpack-dev-server d:\projects\ui > node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.dev.js" "--open" "--progress" "--profile" "--watch" "--content-base" "src/" 10% building modules 2/2 modules 0 activeerror: listen eaddrinuse 127.0.0.1:3000 @ object.exports._errnoexception (util.js:1018:11) @ exports._exceptionwithhostport (util.js:1041:20) @ server._listen2 (net.js:1258:14) @ listen (net.js:1294:10) @ net.js:1404:9 @ getaddrinforeqwrap.asynccallback [as callback] (dns.js:62:16) @ getaddrinforeqwrap.onlookup [as oncomplete] (dns.js:81:10) npm err! code elifecycle npm err! errno 1 npm err! angular-starter@6.0.0 webpack-dev-server: `node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.dev.js" "--open" "--progress" "--profile" "--watch" "--content-base" "src/"` npm err! exit status 1 npm err! npm err! failed @ angular-starter@6.0.0 webpack-dev-server script. npm err! not problem npm. there additional logging output above. npm err! complete log of run can found in: npm err! c:\users\oleg\appdata\roaming\npm-cache\_logs\2017-07-28t12_52_25_565z-debug.log npm err! code elifecycle npm err! errno 1 npm err! angular-starter@6.0.0 server:dev: `npm run webpack-dev-server -- --config config/webpack.dev.js --open --progress --profile --watch --content-base src/` npm err! exit status 1 npm err! npm err! failed @ angular-starter@6.0.0 server:dev script. npm err! not problem npm. there additional logging output above. npm err! complete log of run can found in: npm err! c:\users\oleg\appdata\roaming\npm-cache\_logs\2017-07-28t12_52_25_647z-debug.log npm err! code elifecycle npm err! errno 1 npm err! angular-starter@6.0.0 start: `npm run server:dev` npm err! exit status 1 npm err! npm err! failed @ angular-starter@6.0.0 start script. npm err! not problem npm. there additional logging output above. npm err! complete log of run can found in: npm err! c:\users\oleg\appdata\roaming\npm-cache\_logs\2017-07-28t12_52_25_726z-debug.log
it angular 2 related issue, in webpack.dev.js typescript compiler unable start, can provide file , package.json. easy find error
Comments
Post a Comment