Comments (5)
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.
I don't have node on my machine
from remix.
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.
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.
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)
- "Remix (with Vite and Cloudflare)" template suffers multiple issues in dev mode (hard refresh, <Form> hard refresh, ..)
- Unable to use MUI icons with Remix HOT 1
- cannot import server module in meta HOT 3
- content in meta gets double encoded
- Single Fetch: json serialization is unstable HOT 1
- Error loops when clientLoader crashes after setting environment variables in root.tsx HOT 1
- Erronous import of identically named files HOT 3
- Single Fetch: useFetcher without generics arg triggers TS error `instantiation is excessively deep...` HOT 1
- Deployment to Vercel causes a build panic when using manual route configuration HOT 2
- Vite HMR: Vanilla Extract styles are lost after rendering an error boundary
- Scrolls the page down only if the current scroll position is 0
- Issues with npx create-remix@latest on Safari
- request.signal is never fired in dev server
- Streaming break when load async zone.js HOT 2
- docs - createCookieSessionStorage says commitSession not needed HOT 3
- Error Boundary <Links> conflicting with Root <Links> HOT 1
- Error: No route matches URL "/cart.json" HOT 2
- Inconsistent bundling of css assets between builds (Vite, Stylex) HOT 1
- Single Fetch: returning `null` from resource route loader leads to error HOT 1
- Loader Redirects are inconsistent between Dev / Prod 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 remix.