codesandbox / codesandbox/codesandbox-client
Fresh create-react-app Import from GitHub Failing to Build
Nobody has claimed this yet.
- 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
npx create-react-app some-projectgit remote add origin some-github-url.gitgit push origin master- Import repo to a new Sandbox
- Observe error
Link to sandbox: Failing Sandbox
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | Web |
| Browser | Firefox |
| Operating System | Linux |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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