oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.27k stars 2.77k forks source link

Cannot run nuxt3 with bun #13281

Closed kongoon closed 3 months ago

kongoon commented 3 months ago

How can we reproduce the crash?

when run bun --bun run dev my nuxt3 application not run with bun.

Relevant log output

bun --bun run dev
$ nuxt dev
Nuxt 3.12.4 with Nitro 2.9.7                                       10:49:59 AM
                                                                   10:49:59 AM
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

  ➜ DevTools: press Shift + Option + D in the browser (v1.3.2)     10:50:00 AM

ℹ Vite client warmed up in 622ms                                  10:50:01 AM
✔ Nuxt Nitro server built in 203 ms                         nitro 10:50:01 AM
============================================================
Bun Canary v1.1.22-canary.96 (df33f2b2) macOS Silicon
macOS v14.6.1
Args: "node" "/Users/kongoon/Library/CloudStorage/SynologyDrive-KONGOON/Projects/Web/menu-app/node_modules/.bin/nuxt" "dev"
Features: jsc Bun.stdin(6) Bun.stdout dotenv(3) fetch http_server(3) spawn transpiler_cache(61) tsconfig_paths(14) tsconfig(41) 
Builtins: "bun:jsc" "bun:main" "detect-libc" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:querystring" "node:readline" "node:stream" "node:stream/promises" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:vm" "node:zlib" "node:worker_threads" "ws" "node:v8" 
Elapsed: 2729ms | User: 2995ms | Sys: 493ms
RSS: 0.61GB | Peak: 0.61GB | Commit: 0.96GB | Faults: 2182

panic: Segmentation fault at address 0x28
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.1.22/Mn2df33f2bA6oih0D__urrwO_______A2AwC

error: script "dev" was terminated by signal SIGTRAP (Trace or breakpoint trap)

Stack Trace (bun.report)

Bun v1.1.22 (df33f2b) on macos aarch64 [RunCommand]

Segmentation fault at address 0x00000029

github-actions[bot] commented 3 months ago

@kongoon, the latest version of Bun is v1.1.23, but this crash was reported on Bun v1.1.22.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
github-actions[bot] commented 3 months ago

Hello @kongoon. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro will be closed if they have no activity within 3 days.

Jarred-Sumner commented 3 months ago

@kongoon I am unable to reproduce this on macOS or Windows

Can you provide a more complete reproduction?

kongoon commented 3 months ago

@Jarred-Sumner When I upgrade bun to v1.1.23 and review my code its work. Thank you.