Reproduction for Qwik City issue with WritableStream in Bun
- Clone this repository;
- Install dependencies via
bun i
; - Build the project for production
bun run build
; - Start the app via
bun run serve
; - Open http://localhost:3000 in your browser;
After the main page shows up, look at the terminal and you'll see following error:
$ bun server/entry.bun.js
Server started: http://localhost:3000/
636 | } finally {
637 | await stream.ready;
638 | await stream.close();
639 | await pipe;
640 | }
641 | await writableStream.close();
^
TypeError: WritableStream.close method can only be used on non locked WritableStream
at writableStreamCloseForBindings (:1:21)
at /Users/octetstream/projects/qwik-bun-stream-issue/server/entry.bun.js:641:11