aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
15.87k stars 554 forks source link

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

Open usbogie opened 1 month ago

usbogie commented 1 month ago

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

github-actions[bot] commented 1 month ago

Thanks for opening this issue! A maintainer will review it soon.

usbogie commented 1 month ago
Screenshot 2024-05-21 at 11 05 57 PM

This is what I see when I attempt to access the remote address