codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.07k stars 2.28k forks source link

Codesandbox ignores `template` config, tries to render CRA app in parcel environment when mirroring a GitHub repository #7649

Closed alessbell closed 1 year ago

alessbell commented 1 year ago

🐛 bug report

Preflight Checklist

Description of the problem

Using the https://codesandbox.io/s/github/${org/user}/${repositoryName} syntax for opening a GitHub repository in Codesandbox was working on Thursday. Today, I'm getting the error "Could not find entry file: /index.html. You can specify one in package.json by defining a main property.": https://codesandbox.io/s/github/alessbell/nonreactive

The project is trying to use parcel to bundle the app, but it's a CRA project. This was seemingly automatically detected previously, and now even when I add

{
  "template": "create-react-app"
}

to a sandbox.config.json and push several new commits, I see the same error.

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

Trying to mirror a GitHub repo in Codesandbox.

To Reproduce

See above.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser Arc, Chrome
Operating System MacOS
alessbell commented 1 year ago

Seems like it could be a duplicate of https://github.com/codesandbox/codesandbox-client/issues/6388.

CompuIves commented 1 year ago

Hey! Thanks for reporting this, will take a look at why this is happening.

CompuIves commented 1 year ago

Ah, okay, this one should be fixed now! I noticed that in your sandbox you get the error: Could not find dependency: '@faker-js/faker' relative to '/src/schema.js', that should be fixed if you move that dependency to dependencies in package.json.