Codesandbox does not open the “main” file on opening a sandbox – it executes the “build” and “start” scripts in package.json (and other related scripts, such as pre-builds, etc), since that’s what it needs to do to prep a package for running in their preview browser and/or node instance.
CLICK HERE to find out more related problems solutions.