Ask questionsCrash with "req.handle.writev is not a function" on Socket.Writable.uncork
<!-- Thank you for reporting an issue.
This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help
Please fill in as much of the template below as you're able.
Version: output of node -v
Platform: output of uname -a
(UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name
If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. -->
<!-- Enter your issue details below this comment. -->
This is a node internal crash that happens with webpack-dev-server
, likely with any config, only when running on node 10.6.0:
internal/stream_base_commons.js:59
var err = req.handle.writev(req, chunks, allBuffers);
^
TypeError: req.handle.writev is not a function
at writevGeneric (internal/stream_base_commons.js:59:24)
at Socket._writeGeneric (net.js:758:5)
at Socket._writev (net.js:767:8)
at doWrite (_stream_writable.js:408:12)
at clearBuffer (_stream_writable.js:517:5)
at Socket.Writable.uncork (_stream_writable.js:314:7)
at connectionCorkNT (_http_outgoing.js:646:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
The same webpack-dev-server
with the same config has no crash on node 10.4.1 and runs successfully.
Answer
questions
nicholas-eden
Is there a fix or a workaround for this that doesn't require using node 8?
Using node 10.10 and angular 5 I get this error when I run the angular serve command. It only occurs when using the iOS simulator. It may have something to do with which version I'm emulating, definitely happens on iPad 9.2. I don't recall if it occurs in 12, or if I just haven't had it running long enough to trigger the error.
Related questions