Skip to content

React "react-scripts start" fails in new Codespace #26365

Answered by jkeech
edwinhollen asked this question in Codespaces
Discussion options

You must be logged in to vote

It looks like the react-dev-utils package is trying to open the browser from the remote container, which is failing. In Codespaces, we really want to launch the browser on the client side, not the remote side. If you first run export BROWSER=none before running yarn start, it works since it skips trying to launch the browser on the remote side.

We’ll think through how we can make this scenario work better out of the box.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants