ssr webpack-hot-middleware error

node -v v11.10.0
npm -v 6.7.0
"webpack-dev-middleware": "^1.12.0",
 "webpack-hot-middleware": "^2.18.2"
yarn server or npm run server
f5 刷新頁面
D:\***\node_modules\webpack-hot-middleware\middleware.js:104
        if (!res.finished) res.end();
                               ^

TypeError: res.end is not a function
    at IncomingMessage.<anonymous> (D:\work\dfrc-front\node_modules\webpack-hot-middleware\middleware.js:104:32)
    at IncomingMessage.emit (events.js:197:13)
    at abortIncoming (_http_server.js:451:9)
    at socketOnEnd (_http_server.js:466:5)
    at Socket.emit (events.js:202:15)
    at endReadableNT (_stream_readable.js:1129:12)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
[nodemon] app crashed - waiting for file changes before starting...