2016-11-24 9 views
1

私は[email protected][email protected]の最新バージョンのパッケージを使用しています。 webpackは正常に動作し、アーチファクトを正しく生成します。WebPack Dev ServerがNode.js 7.xで起動しない

その後、私はwebpack-dev-serverで処理できなかった問題に対処するために知っておく必要があります。

私は3つの構成ファイル使用しています:エラーメッセージwebpack-dev-serverが私をダンプしている

を:

#webpack-dev-server --config config/webpack.dev.js --progress --profile --co 
ntent-base src/ 
Project is running at http://localhost:3000/ 
webpack output is served from/
Content not from webpack is served from D:\projects\living\user-platform\project\src 
404s will fallback to/
events.js:160 
     throw er; // Unhandled 'error' event 
    ^

Error: This socket is closed 
    at WriteStream.Socket._writeGeneric (net.js:683:19) 
    at WriteStream.Socket._write (net.js:734:8) 
    at doWrite (_stream_writable.js:334:12) 
    at writeOrBuffer (_stream_writable.js:320:5) 
    at WriteStream.Writable.write (_stream_writable.js:247:11) 
    at WriteStream.Socket.write (net.js:661:40) 
    at Console.warn (console.js:51:16) 
    at printErrorAndExit (D:\projects\living\user-platform\project\node_modules\source-map-support\source-map-support.js 
:406:11) 
    at process.emit (D:\projects\living\user-platform\project\node_modules\source-map-support\source-map-support.js:419: 
16) 
    at process._fatalException (bootstrap_node.js:292:26) 
[default] Checking started in a separate process... 

なぜクラッシュするのか分かりませんが、メッセージの意味は何ですか?

アイデア?

答えて

1

私は全く同じ問題を抱えていました。

Node.jsをLTS 6.9.1にダウングレードすることで解決しました。

Node.jsで7.2.0私は上記と同じエラーが発生しました。 7.2.1へのアップグレードはsolve the problemでも可能です。角度のCLIレポでいくつかの試行錯誤この問題の後

は正しい方向に私を指摘: ng serve error 'This socket is closed' #3102


は、私は、これはあなたが一時的にあなたの問題を解決するのに役立ちます願っています。
キルステン

+0

ありがとう@KirKone。私はwebpack-dev-serverプロジェクトの[この問題](https://github.com/webpack/webpack-dev-server/issues/701)に関する疑問を提起しました。彼らは私に 'source-map-support'を取り除くように提案しました。しかし、私はそれを "削除"する方法を知らない。他のアイデアはありますか? – Jordi

+1

ああ、あなたがその問題を投稿したときにNode.js v7を実行していたことはわかりませんでした。 Node.js v7には、実際には複数の問題があります。残念ながら、これらの問題は、WDS自体ではなく、webpack-dev-serverパッケージを使用した場合に発生します。 – spacek33z

+0

@ Jordi私は彼らがwebpack.config.js内のすべての参照を削除したかったと思います。私はそうしましたが、これは私にとって問題を解決しませんでした。 – KirKone

関連する問題