Comments (4)
You can unblock yourself by installing for example this Chrome extension: https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en
from webcontainer-core.
This is probably caused by the browser rejecting the request because of CORS reasons. From the linked Blitz above, https://stackblitz.com/edit/node-zfkjjc?file=index.js, I get this in my console before the hangup message comes:
Access to fetch at 'https://sampson.codes/' from origin 'https://node-zfkjjc.jw.staticblitz.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Something very similar happens in our Node ORM Prisma, which needs to download a binary from a server to work: prisma/prisma#7185
from webcontainer-core.
This is supposed to work. Bug confirmed.
Thanks for reporting 🙏
from webcontainer-core.
Like @janpio said, this issue happens cause it's not possible to call the url from the browser's env, which is where WebContainer is running.
See an example here: https://stackblitz.com/edit/typescript-ive2dd.
You need to make sure this call works, and then the v2 project should also work.
from webcontainer-core.
Related Issues (20)
- Cannot use "cd projectname" HOT 2
- Terminal Bug HOT 1
- [Request] Support for nodejs addons HOT 2
- yarn install causes too much recursion error HOT 1
- Build command does not work on webcontainer HOT 1
- SWC error on Next.js app router projects HOT 2
- Terminal & browser window are not working HOT 4
- Error creating a new app from template React TypeScript (Cannot use JSX unless the '--jsx' flag is provided.(17004)) HOT 3
- Multiple unexpected errors HOT 3
- bug: inquirer prompt throws an error in terminal HOT 1
- Process of tsx will never exit after a second run HOT 1
- StackBlitz server crashed HOT 1
- Bramwel Ian Auku HOT 1
- Vite Javascipt Project Error HOT 1
- I cant see the app url with my account HOT 1
- StackBlitz server crashed HOT 1
- WebSocket binary frame - added additional 2bytes HOT 1
- Several issues for React typescript blank project HOT 4
- Not allowed to load local resource -> ModuleBuildError: Module build failed -> TypeError: Failed to fetch dynamically imported module HOT 1
- SyntaxError: Unexpected token ')' HOT 1
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 webcontainer-core.