Coder Social home page Coder Social logo

Comments (8)

danilowoz avatar danilowoz commented on June 1, 2024

@DeMoorJasper could you please take a look at this issue?

from sandpack-bundler.

zaini avatar zaini commented on June 1, 2024

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.

DeMoorJasper avatar DeMoorJasper commented on June 1, 2024

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.

zaini avatar zaini commented on June 1, 2024

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.)

image

from sandpack-bundler.

DeMoorJasper avatar DeMoorJasper commented on June 1, 2024

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.

zaini avatar zaini commented on June 1, 2024

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.

KevinEdry avatar KevinEdry commented on June 1, 2024

Hey @DeMoorJasper, is this still an issue? I assume it is fixed by now.

from sandpack-bundler.

DeMoorJasper avatar DeMoorJasper commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.