Skip to content

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

@aerojeyenth

Description

@aerojeyenth

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions