Comments (8)
@DeMoorJasper could you please take a look at this issue?
from sandpack-bundler.
Any updates on this? I tried it on another PC and still get the same errors. It's a bit odd since some libraries work with the locally hosted bundler whereas others don't.
And all libraries work fine when using the CDN bundler. So it's almost like the locally hosted bundler is not the same as the CDN one.
Is there another bundler that can be used in the same way and is compatible with Sandpack?
from sandpack-bundler.
It should be identical to using: https://sandpack-bundler.pages.dev/
as bundlerUrl. You're probably comparing it to the v1 bundler which is still the default for sandpack, for which the sourcecode is here: https://github.com/codesandbox/codesandbox-client
from sandpack-bundler.
If I change the bundlerUrl from my locally hosted bundler (https://github.com/codesandbox/sandpack-bundler), to https://sandpack-bundler.pages.dev/
I still get the same error. The only thing that works is not defining bundlerUrl so that it uses the default CDN bundler (which I don't want to use.)
from sandpack-bundler.
Yes, that's what I suspected, it's a bug in the new v2 bundler, you should probably follow this guide instead for self-hosting the v1 bundler: https://sandpack.codesandbox.io/docs/advanced-usage/client#hosting-the-bundler
from sandpack-bundler.
How do I host the www
file? I'm trying just npx http-server
and then passing http://127.0.0.1:8080/
as the bundlerUrl
but that doesn't seem to work.
Ideally I'm looking to only host the bundler. Is the bug with sandpack-bundler
being tracked?
Thanks.
from sandpack-bundler.
Hey @DeMoorJasper, is this still an issue? I assume it is fixed by now.
from sandpack-bundler.
Don't think we've fixed this on the new experimental bundler, but it works on the stable bundler.
We're not yet sure how we're gonna fix this yet.
from sandpack-bundler.
Related Issues (7)
- Feature: dispatch bundler state from bundler to protocol HOT 1
- Request the template resolution of a Vue
- Architecture chart link doesn't work HOT 1
- Missing DOCTYPE causes browsers to use Quirks Mode HOT 1
- Remove console.warn("Unknown preset parcel, falling back to React") when using experimental bundler HOT 2
- Live editing does not work with experimental bundler
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 sandpack-bundler.