Giter Club home page Giter Club logo

Comments (5)

brophdawg11 avatar brophdawg11 commented on May 28, 2024

Can you provide a reproduction or a git repo? I just created a new app via create-remix and it runs OK for me locally on node 20 and bun 1.0.33.

from remix.

Polygons1 avatar Polygons1 commented on May 28, 2024

I don't have node on my machine

from remix.

brophdawg11 avatar brophdawg11 commented on May 28, 2024

Can you provide a reproduction or dig further into where the error is coming from? It is coming from bun? Or a nested dependency? Remix never calls a .toJSON method as far as I can tell in the codebase.

from remix.

Polygons1 avatar Polygons1 commented on May 28, 2024

I am also getting this:

  at object.<anonymous> (./node_modules/@remix-run/web-fetch/src/fetch.js:116:3)
  at _final (native:1:1)
  at callFinal (native:1:1)
  at prefinish (native:1:1)
  at finishMaybe (native:1:1)
  at native:1:1
  at onend (native:1:1)
  at endReadableNT (native:1:1)
  at processTicksAndRejections (native:1:1)

from remix.

brophdawg11 avatar brophdawg11 commented on May 28, 2024

Those Remix web-fetch polyfills are only intended for node usage - bun should have built in fetch APIs so you shouldn't need to install the polyfills which remix-serve does by default. I would use a custom express (or other) server and avoid calling installGlobals so you use bun's built in fetch APIs instead of the Remix polyfills.

Something like this is probably closest to what you want if you want to use Bun's raw HTTP server: https://github.com/mcansh/remix-node-http-server

from remix.

Related Issues (20)

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.