million icon indicating copy to clipboard operation
million copied to clipboard

React app build failing: `cause: SocketError: other side closed`

Open usbogie opened this issue 9 months ago • 3 comments

What version of million are you using?

1.0.0-rc.1

Are you using an SSR adapter? If so, which one?

No

What package manager are you using?

yarn

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

After adding MillionLint.webpack() to my list of plugins, I try and start up my react app and see this error:

node:internal/deps/undici/undici:11413
    Error.captureStackTrace(err, this);
          ^

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11413:11) {
  cause: SocketError: other side closed
      at TLSSocket.onSocketEnd (node:internal/deps/undici/undici:9647:26)
      at TLSSocket.emit (node:events:525:35)
      at endReadableNT (node:internal/streams/readable:1359:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '10.0.0.96',
      localPort: 54595,
      remoteAddress: '76.76.21.142',
      remotePort: 443,
      remoteFamily: 'IPv4',
      timeout: undefined,
      bytesWritten: 14582500,
      bytesRead: 1428
    }
  }
}

What's the expected result?

I expected to be able to use million lint.

Link to Minimal Reproducible Example

none

Participation

  • [ ] I am willing to submit a pull request for this issue.

usbogie avatar May 22 '24 06:05 usbogie