electric-sql / electric-sql/electric

Feature request: Bun.js support for tanstack-db-web-starter

Open
#3,667 0 comments 0 reactions 0 assignees View on GitHub
feature request triage
Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
3d 1h
Merged PRs (30d)
18

Description

**Is your feature request related to a problem? Please describe.**
I tried to use bun instead of Node.js for tanstack-db-web-starter but I am getting the following error:

`10:46:02 PM [vite] server restarted. 2026/01/01 22:46:10.771 ERROR http.log.error net/http: HTTP/1.x transport connection broken: too many transfer encodings: ["chunked" "chunked"] {"request": {"remote_ip": "::1", "remote_port": "50070", "client_ip": "::1", "proto": "HTTP/2.0", "method": "GET", "host": "localhost:5173", "uri": "/", "headers": {"Sec-Fetch-User": ["?1"], "Accept-Language": ["en,en-US;q=0.9"], "Sec-Ch-Ua-Mobile": ["?0"], "Upgrade-Insecure-Requests": ["1"], "User-Agent": ["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"], "Sec-Fetch-Dest": ["document"], "Accept-Encoding": ["gzip, deflate, br, zstd"], "Sec-Fetch-Mode": ["navigate"], "Cookie": ["REDACTED"], "Priority": ["u=0, i"], "Sec-Ch-Ua": ["\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\""], "Sec-Ch-Ua-Platform": ["\"macOS\""], "Sec-Fetch-Site": ["none"]}, "tls": {"resumed": true, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "localhost"}}, "duration": 0.784606667, "status": 502, "err_id": "37jdg1gm7", "err_trace": "reverseproxy.statusError (reverseproxy.go:1390)"}`

**Describe the solution you'd like**
I would like to use ElectricSQL with tanstack-db on bun runtime.

**Additional context**
Looks like there is some issue with the CaddyServer encoding on bun.js
localhost:3000 serves the application correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.