core icon indicating copy to clipboard operation
core copied to clipboard

Bun stuck on pending when using 'hub' config

Open Nazvix opened this issue 1 year ago • 6 comments

Describe the bug When using Bun as runtime, 'bun --bun run dev' makes the app stuck on pending fetching the page

Steps to reproduce Steps to reproduce the behavior:

  1. Initialize using minimal template 'bunx nuxi init my-nuxt-app'
  2. Install NuxtHub module 'bunx nuxi@latest module add hub'
  3. Add 'hub' config with any key-value pair 'hub: { database: true, blob: true }'
  4. Dev server will be stuck on loading, checking network tab on devtools will reveal it stuck on pending while fetching the page.

Expected behavior Dev server will run using 'hub' config on Bun.

Screenshot Image

Version Bun: 1.2.6 Nuxt: 3.16.1 @nuxthub/core: 0.8.22

Nazvix avatar Mar 31 '25 23:03 Nazvix

Did you have any warning in the terminal?

Make sure to install wrangler as dev dependency:

bun add --dev wrangler

atinux avatar Apr 01 '25 09:04 atinux

No warning in terminal, and wrangler is already installed as dev dependency, the version is 4.6.0

Image

Nazvix avatar Apr 02 '25 00:04 Nazvix

Could you try with node instead of bun?

atinux avatar Apr 02 '25 08:04 atinux

Yes, it worked using Node.

Nazvix avatar Apr 02 '25 08:04 Nazvix

We need to investigate but I anyway recommend node as runtime

atinux avatar Apr 02 '25 09:04 atinux

Okay, for the mean time i'll use Node for the runtime

Nazvix avatar Apr 02 '25 10:04 Nazvix