3

2 つのビルドを並行して実行しています ( build/server/( target: 'node') とbuild/client/( target: 'web') を対象としているため、ファイルが交差することはありません)。ときどき (これは奇妙な部分です。ときどきのみ)、次のようになります。

WARNING in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/bufferutil in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/BufferUtil.js 8:19-57

WARNING in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/bufferutil in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/BufferUtil.js 10:19-57

WARNING in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/validation in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/Validation.js 8:19-57

WARNING in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/validation in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/Validation.js 10:19-57

ERROR in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/xmlhttprequest/lib/XMLHttpRequest.js
Module not found: Error: Cannot resolve module 'fs' in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/xmlhttprequest/lib/XMLHttpRequest.js 14:9-22

ERROR in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/xmlhttprequest/lib/XMLHttpRequest.js
Module not found: Error: Cannot resolve module 'child_process' in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/xmlhttprequest/lib/XMLHttpRequest.js 16:12-36

ERROR in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/WebSocketServer.js
Module not found: Error: Cannot resolve module 'tls' in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/WebSocketServer.js 14:10-24

ERROR in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/WebSocket.js
Module not found: Error: Cannot resolve module 'fs' in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/lib/WebSocket.js 13:9-22

ERROR in (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/~/options/lib/options.js
Module not found: Error: Cannot resolve module 'fs' in test/node_modules/webpack-dev-server/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/options/lib
 @ (webpack)-dev-server/~/socket.io-client/~/engine.io-client/~/ws/~/options/lib/options.js 6:9-22

同じものを連続して実行するのはclientserver.

私は運が悪いので自分でそれを理解しようとしました...私の知る限りsocket.io、異なるWeb/ノードターゲットには2つのバージョンがあり、どういうわけかそれらはめちゃくちゃです。

4

0 に答える 0