codesandbox / codesandbox-client

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

Named import resolution exception #8437

Closed eyelly-wu closed 5 months ago

eyelly-wu commented 5 months ago

🐛 bug report

Preflight Checklist

Description of the problem

The following error is reported after executing the startup command

image

But running it locally or via stackblitz, it doesn't get the above error and can be started and run normally

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

I hope it can start and execute normally

To Reproduce

Link to sandbox: [link]() (optional)

https://codesandbox.io/p/github/i18n-pro/svelte-demo/context

Your Environment

Software Name/Version
Сodesandbox Version: 0.0.301
Environment: production
Sandbox: 7hk9rw
Pitcher: 0.352.1
Manager: 1.42.5
Cluster: fc-us-0
Browser Microsoft Edge 124.0.2478.51
Operating System MacOS 14.4.1
CompuIves commented 5 months ago

Hey! It should work if you change the URL to https://codesandbox.io/p/devbox/github/i18n-pro/svelte-demo/context. That will load the Devbox as a "Synced Template", which I think is perfect for your use case (you can learn more about it here: https://codesandbox.io/docs/learn/devboxes/synced-templates#what-are-synced-templates).

In the link you shared, it was loaded as a repository, and it didn't pull automatically the latest changes. Synced templates will ensure that latest changes are pulled, always.

eyelly-wu commented 5 months ago

@CompuIves Thanks, Open it through https://codesandbox.io/p/devbox/github/i18n-pro/svelte-demo/context and it's fine.