bun-elysia-nextjs icon indicating copy to clipboard operation
bun-elysia-nextjs copied to clipboard

How do you run this Template?

Open micoloth opened this issue 1 year ago • 1 comments

First of all, very cool template! I like it a lot. Thank you for publishing it.

Unfortunately, it doesn't run for me..

This is my environment:

MacOS 13

$ bun --version
1.0.18
$ npm --version
10.2.3
$ node --version
v20.10.0

I have cloned the repo and launched bun run dev. But it raises this error:

TypeError: undefined is not a function
      at #ensureReadableStreamController (node:http:716:67)
      at _write (node:http:696:17)
      at writeOrBuffer (node:stream:2596:53)
      at node:stream:2579:79
      at onStreamData (/Users/michele.tasca/MyStuff/Coding_stuff/WebDev/bun-elysia-nextjs-same-port/node_modules/next/dist/compiled/compression/index.js:22:1841)
      at addChunk (node:stream:1940:43)
      at readableAddChunk (node:stream:1894:59)
      at callback (node:zlib:2467:47)
      at node:zlib:2095:79
      at node:zlib:2022:77
      at processTicksAndRejections (:61:77)

Could you share what Bun version were you using to run this? It would be much appreciated.

Thanks again

micoloth avatar Dec 25 '23 18:12 micoloth

I used bun 1.0.4 when making this. If I have time later I will look into this and see if I can fix this repo for newer bun versions.

ItzDerock avatar Dec 25 '23 20:12 ItzDerock