Skip to content
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

HTTPS dev server crash. "req.handle.writev is not a function" #5003

Closed
ghost opened this issue Sep 12, 2018 · 6 comments
Closed

HTTPS dev server crash. "req.handle.writev is not a function" #5003

ghost opened this issue Sep 12, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 12, 2018

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes
6.4.1

Which terms did you search for in User Guide?

https, crash, writev

Environment

npx: installed 67 in 7.907s

Environment:
OS: Linux 4.4
Node: 10.10.0
Yarn: Not Found
npm: 6.4.1
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: ^16.5.0 => 16.5.0
react-dom: ^16.5.0 => 16.5.0
react-scripts: 1.1.5 => 1.1.5

Steps to Reproduce

  1. npx create-react-app test
  2. cd test
  3. echo "HTTPS=true" > .env
  4. npm start
  5. Dev server crash

Expected Behavior

I expected the development server to operate as normal with the exception of using HTTPS.

Actual Behavior

The server crashed, citing "req.handle.writev is not a function"
image

Reproducible Demo

https://github.com/kinnamonb/react-https-crash

  1. npm start
@abustamam
Copy link

abustamam commented Sep 13, 2018

This was an issue in Webpack Dev Server, which should have been fixed in react-scripts@1.1.5 (see this issue, but I'm running into the same problem, but I'm on Node 8.10.0.

@ghost
Copy link
Author

ghost commented Sep 13, 2018

It seemed to only happen when developing on my Windows installation. I was able to get it to work for a few hours this morning on my Manjaro Linux install (same machine).

@zwergius
Copy link

Experiencing this too, node_modules/react-scripts/package.json lists ->
"webpack-dev-server": "2.11.3" I was under the impression that this should be 3.1.7 ??

@Timer Timer modified the milestones: 2.0.x, 2.x Sep 26, 2018
@jhanzuro
Copy link

jhanzuro commented Oct 2, 2018

Could be too early, but this looks fixed upgrading react-scripts to 2.0.3 (create-react-app 2.0) , it works for me.

@Timer Timer removed this from the 2.x milestone Nov 2, 2018
@stale
Copy link

stale bot commented Dec 2, 2018

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 2, 2018
@stale
Copy link

stale bot commented Dec 8, 2018

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

@stale stale bot closed this as completed Dec 8, 2018
@lock lock bot locked and limited conversation to collaborators Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants