ItzDerock / bun-elysia-nextjs

Demo showing Bun + Elysia + NextJS (app dir)
https://bun-elysia-nextjs-production.up.railway.app/
50 stars 6 forks source link

How do you run this Template? #1

Open micoloth opened 10 months ago

micoloth commented 10 months ago

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

ItzDerock commented 10 months ago

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.