Skip to content

Error running netlify dev #6792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kfoubert opened this issue Aug 16, 2024 · 2 comments
Closed

Error running netlify dev #6792

kfoubert opened this issue Aug 16, 2024 · 2 comments
Labels
type: bug code to address defects in shipped code

Comments

@kfoubert
Copy link

Describe the bug

The command told me to report the error.

TypeError: res.writeHead is not a function
at ProxyServer. (file:///home/kfoubert/source/wsfec-website/node_modules/netlify-cli/dist/utils/proxy.js:381:13)
at ProxyServer.emit (/home/kfoubert/source/wsfec-website/node_modules/netlify-cli/node_modules/eventemitter3/index.js:204:33)
at ClientRequest.onOutgoingError (/home/kfoubert/source/wsfec-website/node_modules/netlify-cli/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js:157:16)
at ClientRequest.emit (node:events:514:28)
at ClientRequest.emit (node:domain:489:12)
at Socket.socketOnEnd (node:_http_client:519:9)
at Socket.emit (node:events:526:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1376:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (3) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Binaries:
Node: 20.6.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 10.5.2 - /usr/local/bin/npm

Steps to reproduce

simply ran npm run netlify dev

Configuration

[build]
command = "lando npm run build"
publish = "public"

[dev]
command = "lando npm run develop"

Environment

System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (3) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Memory: 4.06 GB / 7.76 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.6.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 10.5.2 - /usr/local/bin/npm
pnpm: 9.7.1 - /mnt/c/Users/kfoub/AppData/Roaming/npm/pnpm
npmPackages:
netlify-cli: ^17.34.1 => 17.34.1

@kfoubert kfoubert added the type: bug code to address defects in shipped code label Aug 16, 2024
@kfoubert kfoubert changed the title Please replace with a clear and descriptive title Error running netlify dev Aug 16, 2024
@kfoubert
Copy link
Author

Similar to
#6773

@kfoubert
Copy link
Author

kfoubert commented Aug 16, 2024

Note: I logged out and back in and then it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant