FlyCreat1ve
FlyCreat1ve
HHono
Created by FlyCreat1ve on 9/4/2024 in #help
Bun + Hono doesn't work for me.
Hi, folks. Wanted to try hono with bun, but wasn't successful. I tried to fix it by myself with google and chatgpt, but also wasn't succesful. May I ask you folks to help?
bun -v
1.1.26
➜ bun create hono hono_test
create-hono version 0.13.0
✔ Using target directory … hono_test
? Which template do you want to use? bun
? Do you want to install project dependencies? yes
? Which package manager do you want to use? bun
✔ Cloning the template
✔ Installing project dependencies
🎉 Copied project files
Get started with: cd hono_test

➜ cd hono_test
➜ bun run dev
$ bun run --hot src/index.ts
error: Cannot find module "hono/dist/hono.js" from "/home/sasha/IdeaProjects/hono_test/node_modules/hono/dist/index.js"
bun -v
1.1.26
➜ bun create hono hono_test
create-hono version 0.13.0
✔ Using target directory … hono_test
? Which template do you want to use? bun
? Do you want to install project dependencies? yes
? Which package manager do you want to use? bun
✔ Cloning the template
✔ Installing project dependencies
🎉 Copied project files
Get started with: cd hono_test

➜ cd hono_test
➜ bun run dev
$ bun run --hot src/index.ts
error: Cannot find module "hono/dist/hono.js" from "/home/sasha/IdeaProjects/hono_test/node_modules/hono/dist/index.js"
If I run bun install manually, I have this:
➜ bun install
bun install v1.1.26 (0a37423b)

Checked 6 installs across 7 packages (no changes) [3.00ms]
➜ bun run dev
$ bun run --hot src/index.ts
error: Cannot find module "hono/dist/hono.js" from "/home/sasha/IdeaProjects/hono_test/node_modules/hono/dist/index.js"
➜ bun install
bun install v1.1.26 (0a37423b)

Checked 6 installs across 7 packages (no changes) [3.00ms]
➜ bun run dev
$ bun run --hot src/index.ts
error: Cannot find module "hono/dist/hono.js" from "/home/sasha/IdeaProjects/hono_test/node_modules/hono/dist/index.js"
3 replies