codesandbox / codesandbox/codesandbox-client
Error "Could not find entry file: /index.html" on `master` branch
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
I have a GitHub sandbox that gives me the following error:
Error
Could not find entry file: /index.html. You can specify one in package.json by defining a `main` property.
This is odd, because the problem only happens now that the sandbox has been merged on master. The sandbox generated from the working branch (now deleted was working fine).
Also, the sandbox generated from the commit hash on master works as well, even though it's exactly the same.
How has this issue affected you? What are you trying to accomplish?
We need this sandbox for demo purposes, so it's currently blocking a release.
To Reproduce
- Go to the sandbox from
master, notice the error. - Go to the the sandbox from
d58c4b3, notice it works despite being the same code.
Link to sandbox: link
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | 23405e5a1 |
| Browser | Firefox 95.0.2, Chrome 97.0.4692.71 |
| Operating System | macOS Big Sur 11.5.1 |
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 error in the linked sandbox on the master branch and compare it with the working sandbox at commit d58c4b3. Trace how the repository path is resolved and how the entry file is selected. Done means the master-branch sandbox loads successfully for the demo without the missing /index.html error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100