Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 9, 2023. It is now read-only.
This repository was archived by the owner on Apr 9, 2023. It is now read-only.

Error during building example app: probably smth with websocket errno: -4039, code: 'ETIMEDOUT' #478

Open
@ev-shamko

Description

Hi! I'm trying to prerender the CRA-example from this repository: examples/create-react-app/
But during build process i get this mistake.

And i get the same mistake while prerendering apps using react-snap and react-snapshot solutions.
So the problem must be on my side. Any suggestions how to fix this?

Here's the log:

`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.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /