question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] CRA incompatibility on HTTPS=true flag

See original GitHub issue

Describe the bug

HTTPS=true spits this error: EROFS: read-only filesystem, open '/node_modules/webpack-dev-server/ssl/server.pem' after migrating to yarn 2.

To Reproduce

From a fresh CRA install, prepend HTTPS=true flag in the scripts.start from your package.json.

It should now look like this

scripts: {
  start: "HTTPS=true react-scripts start"
}

To clarify, yarn starts perfectly without HTTPS=true, I’m suspecting webpack-dev-server creates a self-signed certificate and writes it into its own directory, except they’re all now read-only.

Environment if relevant (please complete the following information):

  • OS: OSX
  • Node version v10.16.3
  • Yarn version 2.0.0-rc.27

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
jacklaurencegaraycommented, Jan 28, 2020

This has been solved by adding a meta dependency on package.json:

"dependenciesMeta": {
    "webpack-dev-server": {
      "unplugged": true
    }
}

From: https://next.yarnpkg.com/configuration/manifest/#dependenciesMeta.unplugged

3reactions
andrewmclagancommented, Mar 11, 2020

This still produces the same error for us, yarn=2.0.0-rc.29

Read more comments on GitHub >

github_iconTop Results From Across the Web

https://courses.cs.washington.edu/courses/cse331/1...
In that case, you should include CRA's config by adding this line: >```js { // . ... Some library may be incompatible with...
Read more >
Frequently asked questions: Heartbleed - Canada.ca
This software is called OpenSSL. This bug has the potential to expose private data. The CRA uses OpenSSL to authenticate users of its...
Read more >
CHANGELOG-1.x.md - facebook/create-react-app - Sourcegraph
#3408 Add --info flag to help gather bug reports. ... If you previously used HTTPS=true environment variable in development, make sure you aren't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found