Comments (1)
Thanks for the report! Yes, this issue is a bit more tricky to solve. When we run a project, we transpile all code and run our own require
function for "bundling" the code. We transpile to commonjs, and top level await only works in ESM context. To run ESM directly, we need to rebuild the bundler from the ground up (perhaps based on service worker? I would do it that way). Transpiling top-level await is possible, by turning them into generators and having a custom runtime that executes the code and runs yield
, but there currently does not exist a transpiler plugin for that.
So this one is harder to solve right now. I would recommend converting to a devbox in the meantime to circumvent this issue.
from codesandbox-client.
Related Issues (20)
- Debugging Ability HOT 1
- [CRITICAL] Error fetching sandbox HOT 1
- Styling is not visible caused by the Sandbox environment
- Broken links in pricing HOT 1
- Changing 'lib' compiler option to 'es2017' has no effect HOT 3
- [sandbox] Vanilla TypeScript template yields โUnexpected keyword or identifier typescript(1434)โ error when using `await` keyword HOT 7
- React useEffect run twice even strictMode is closed HOT 2
- Named import resolution exception HOT 2
- Unable to start the microVM HOT 7
- 502 It looks like the dev server has not been started yet. Start from the editor โ HOT 7
- BrowserFS Deprecated
- Vue purported vnode error in CodeSandbox HOT 2
- fl, fi in the code editor are not of expected width
- out put is not coming HOT 1
- When package name in dependencies and `npm:` specifier differ, Codesandbox fails to load correct URL from CDN
- Failed to initialize VS Code Server: Error: Critical unhandled error (Error) occured: connect ECONNREFUSED /run/user/1002/pitcher/fs-container.sock. We've opened VS Code in web-only in the meantime HOT 1
- [email protected]@gmail.com
- Open Sandbox button has a strange white border
- Sharing non-functional HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codesandbox-client.