title: Error during prerendering React CRA app: target: WebSocket Error: connect ETIMEDOUT errno: -4039
body: <p>I'm trying to add prerender to a basic React CRA project. I've tried react-snap, react-snapshot,
  prerender-spa-plugin. But during the build process I always get the same mistake. Probably smth is wrong with WebSocket and virtual server during prerender process.</p>
  <p>I get this mistake even when i try to prerender the example of CRA project from prerender-spa-plugin repository.  <a href="https://github.com/chrisvfritz/prerender-spa-plugin/tree/master/examples/create-react-app" rel="nofollow noreferrer">Link to that example app</a></p>
  <p>So I guess the problem must be hiding not in the app code or app settings.
  Everything except prerendering works perfectly fine.</p>
  <p>Do you have any idea what might be wrong? I'm using node v17.17, npm 6.14, windows 10</p>
  <p>Here's the log:</p>
  <pre><code>Creating an optimized production build...
  ErrorEvent {
    target: WebSocket {
      _events: [Object: null prototype] { open: [Function], error: [Function] },
      _eventsCount: 2,
      _maxListeners: undefined,
      readyState: 3,
      protocol: '',
      _binaryType: 'nodebuffer',
      _closeFrameReceived: false,
      _closeFrameSent: false,
      _closeMessage: '',
      _closeTimer: null,
      _closeCode: 1006,
      _extensions: {},
      _isServer: false,
      _receiver: null,
      _sender: null,
      _socket: null,
      url: 'ws://127.0.0.1:60627/devtools/browser/24798c81-2a9d-495e-9f24-ebfce2b17136',
      _req: null,
      [Symbol(kCapture)]: false
    },
    type: 'error',
    message: 'connect ETIMEDOUT 127.0.0.1:60627',
    error: Error: connect ETIMEDOUT 127.0.0.1:60627
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
      errno: -4039,
      code: 'ETIMEDOUT',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 60627
    }
  }
  [Prerenderer - PuppeteerRenderer] Unable to start Puppeteer
  D:\***\prerender-spa-plugin example create-react-app\node_modules\react-scripts\scripts\build.js:19
    throw err;
    ^
  
  TypeError: Cannot read property 'close' of null
      at PuppeteerRenderer.destroy (D:\***\prerender-spa-plugin example create-react-app\node_modules\
  @prerenderer\renderer-puppeteer\es6\renderer.js:140:21)
      at Prerenderer.destroy (D:\***\prerender-spa-plugin example create-react-app\node_modules\@prere
  nderer\prerenderer\es6\index.js:87:20)
      at D:\***\prerender-spa-plugin example create-react-app\node_modules\prerender-spa-plugin\es6\in
  dex.js:144:29
      at processTicksAndRejections (internal/process/task_queues.js:95:5)
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! prerender-spa-plugin-example-create-react-app@0.1.0 build: `react-app-rewired build`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the prerender-spa-plugin-example-create-react-app@0.1.0 build script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  </code></pre>