codesandbox / codesandbox/codesandbox-client

Fresh create-react-app Import from GitHub Failing to Build

Open
#6,035 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🤔 Improvement Packager
Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

When I create a fresh React app with create-react-app and push it to GitHub, it won't build when imported to CodeSandbox. Fails on Node 12 and 17. Error is {err: TypeError}, and then it tells me it's retrying package fetch.

How has this issue affected you? What are you trying to accomplish?

Create interactive examples of React apps while maintaining the source code in GitHub.

To Reproduce
  1. npx create-react-app some-project
  2. git remote add origin some-github-url.git
  3. git push origin master
  4. Import repo to a new Sandbox
  5. Observe error
Link to sandbox: Failing Sandbox
Your Environment
Software Name/Version
Сodesandbox Web
Browser Firefox
Operating System Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the import with npx create-react-app, the GitHub push steps, and the linked failing Sandbox. Compare the package-fetch retry and {err: TypeError} behavior on the reported Node 12 and 17 environments. Done means a fresh create-react-app repository imports and builds successfully from GitHub.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.