oven-sh / bun

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

Support Histoire (Vite framework for UI stories) #3787

Open birkskyum opened 1 year ago

birkskyum commented 1 year ago

Histoire - Website - GitHub

What version of Bun is running?

0.7.1

What platform is your computer?

Darwin 22.5.0 arm64 arm

What steps can reproduce the bug?

What is the expected behavior?

➜ npm run story:dev

> histoire-example-vue3@0.0.1 story:dev
> histoire dev

Using 5 threads for story collection
Collect stories start all
  ➜  Local:   http://localhost:6006/
  ➜  Network: use --host to expose
src/InjectDemo.story.vue 217ms (setup:30ms, execute:9ms, run:178ms)
src/BaseButton.story.vue 450ms (setup:30ms, execute:6ms, run:414ms)

What do you see instead?

➜ bun --bun run story:dev                                                                                                   
$ histoire dev
SyntaxError: Import named 'receiveMessageOnPort' not found in module 'node:worker_threads'.
error: script "story:dev" exited with code 1 (SIGHUP)
last part of debug log ```zig [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/camel-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/camel-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/camel-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/capital-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/capital-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/capital-case/package.json) = 8 [fs] stat(8) = 2163 [fs] pread(8, 2163) = 2163 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/capital-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/capital-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/capital-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/constant-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/constant-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/constant-case/package.json) = 8 [fs] stat(8) = 2156 [fs] pread(8, 2156) = 2156 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/constant-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/constant-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/constant-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/dot-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/dot-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/dot-case/package.json) = 8 [fs] stat(8) = 2100 [fs] pread(8, 2100) = 2100 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/dot-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/dot-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/dot-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/header-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/header-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/header-case/package.json) = 8 [fs] stat(8) = 2117 [fs] pread(8, 2117) = 2117 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/header-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/header-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/header-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/no-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/no-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/no-case/package.json) = 8 [fs] stat(8) = 2038 [fs] pread(8, 2038) = 2038 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/no-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/no-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/no-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/param-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/param-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/param-case/package.json) = 8 [fs] stat(8) = 2142 [fs] pread(8, 2142) = 2142 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/param-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/param-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/param-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case/package.json) = 8 [fs] stat(8) = 2131 [fs] pread(8, 2131) = 2131 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/pascal-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/path-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/path-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/path-case/package.json) = 8 [fs] stat(8) = 2091 [fs] pread(8, 2091) = 2091 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/path-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/path-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/path-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case/package.json) = 8 [fs] stat(8) = 2161 [fs] pread(8, 2161) = 2161 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/sentence-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/snake-case) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/snake-case/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/snake-case/package.json) = 8 [fs] stat(8) = 2135 [fs] pread(8, 2135) = 2135 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/snake-case/dist.es2015/) = 6 [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/snake-case/dist/) = 6 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/snake-case/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/micromatch/index.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/micromatch/index.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/micromatch/index.js) = 6 [fs] stat(6) = 13741 [fs] pread(6, 13741) = 13741 [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/server.mjs [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/server.mjs [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/server.mjs) = 6 [fs] stat(6) = 10572 [fs] pread(6, 10572) = 10572 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/) = 3 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/pathe) = fs.IterableDir{ .dir = fs.Dir{ .fd = 8 } } [fs] readdir(8, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/pathe/) = 5 [fs] openat(8, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/pathe/package.json) = 9 [fs] stat(9) = 1301 [fs] pread(9, 1301) = 1301 [SYS] close(9) [SYS] close(7) [SYS] close(8) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/pathe/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/pathe/dist/) = 7 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/debug) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/debug/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/debug/package.json) = 8 [fs] stat(8) = 1419 [fs] pread(8, 1419) = 1419 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/debug/src/) = 4 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/debug/src) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/mlly) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/mlly) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/mlly) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/mlly/) = 5 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/mlly/package.json) = 8 [fs] stat(8) = 1304 [fs] pread(8, 1304) = 1304 [SYS] close(8) [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/mlly/dist) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/mlly/dist/) = 3 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/picocolors) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/picocolors) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/source-map-support) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/source-map-support) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/source-map-support) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/source-map-support/) = 7 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/source-map-support/package.json) = 8 [fs] stat(8) = 764 [fs] pread(8, 764) = 764 [SYS] close(8) [SYS] close(7) [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/@akryum/tinypool/dist/esm/index.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/@akryum/tinypool/dist/esm/index.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/@akryum/tinypool/dist/esm/index.js) = 6 [fs] stat(6) = 25335 [fs] pread(6, 25335) = 25335 [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/birpc/dist/index.mjs [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/birpc/dist/index.mjs [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/birpc/dist/index.mjs) = 6 [fs] stat(6) = 1672 [fs] pread(6, 1672) = 1672 [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/tree.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/tree.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/tree.js) = 6 [fs] stat(6) = 3405 [fs] pread(6, 3405) = 3405 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/histoire/picocolors) = error.FileNotFound [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/util/fs.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/util/fs.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/util/fs.js) = 6 [fs] stat(6) = 55 [fs] pread(6, 55) = 55 [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/index.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/index.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/index.js) = 6 [fs] stat(6) = 358 [fs] pread(6, 358) = 358 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/fs) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/fs/) = 1 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/copy) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/copy/) = 3 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/empty) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/empty/) = 1 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/ensure) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/ensure/) = 6 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/json) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/json/) = 4 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/mkdirs) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/mkdirs/) = 3 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/move) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/move/) = 3 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/output-file) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/output-file/) = 1 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/path-exists) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/path-exists/) = 1 [SYS] close(7) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/remove) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/fs-extra/lib/remove/) = 2 [SYS] close(7) [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/client.mjs [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/client.mjs [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/dist/client.mjs) = 6 [fs] stat(6) = 12444 [fs] pread(6, 12444) = 12444 [JSC] parseDouble (src/bun.js/bindings/bindings.zig:5508) [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/mlly) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/mlly) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/source-map-support) = error.FileNotFound [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/vite-node/node_modules/source-map-support) = error.FileNotFound [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it/index.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it/index.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it/index.js) = 6 [fs] stat(6) = 52 [fs] pread(6, 52) = 52 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it/lib/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it/lib/) = 13 [SYS] close(7) [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/gray-matter/index.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/gray-matter/index.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/gray-matter/index.js) = 6 [fs] stat(6) = 6140 [fs] pread(6, 6140) = 6140 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/section-matter) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/section-matter/) = 4 [fs] openat(7, /Users/admin/repos/histoire-vue3-starter/node_modules/section-matter/package.json) = 8 [fs] stat(8) = 1085 [fs] pread(8, 1085) = 1085 [SYS] close(8) [SYS] close(7) [fs] readdir(7, /Users/admin/repos/histoire-vue3-starter/node_modules/gray-matter/lib/) = 8 [fs] open(/Users/admin/repos/histoire-vue3-starter/node_modules/gray-matter/lib) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } } [SYS] close(7) [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/shiki-es/dist/shiki.node.mjs [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/shiki-es/dist/shiki.node.mjs [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/shiki-es/dist/shiki.node.mjs) = 6 [fs] stat(6) = 637348 [fs] pread(6, 637348) = 637348 [JSC] createLatin1 (src/string.zig:324) [SYS] close(6) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) Loader [fetch] /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it-anchor/dist/markdownItAnchor.js [JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574) [JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600) [ModuleLoader] transpileFile: /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it-anchor/dist/markdownItAnchor.js [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/markdown-it-anchor/dist/markdownItAnchor.js) = 6 [fs] stat(6) = 6310 [fs] pread(6, 6310) = 6310 uh-oh: integer overflow bun will crash now 😭😭😭 ----- bun meta ----- Bun v0.7.1_debug (967ccb5d) macOS Silicon 22.5.0 AutoCommand: Elapsed: 603ms | User: 490ms | Sys: 78ms RSS: 121.39MB | Peak: 0.13GB | Commit: 125.11MB | Faults: 55 ----- bun meta ----- 0 0x10586b6b0 WTFGetBacktrace 1 ??? Bun__crashReportDumpStackTrace 2 ??? src.report.fatal 3 ??? src.main.panic 4 ??? src.sourcemap.sourcemap.appendMappingToBuffer 5 ??? src.sourcemap.sourcemap.Chunk.VLQSourceMap.append 6 ??? src.sourcemap.sourcemap.Chunk.NewBuilder(src.sourcemap.sourcemap.Chunk.VLQSourceMap).appendMappingWithoutRemapping 7 ??? src.sourcemap.sourcemap.Chunk.NewBuilder(src.sourcemap.sourcemap.Chunk.VLQSourceMap).appendMapping 8 ??? src.sourcemap.sourcemap.Chunk.NewBuilder(src.sourcemap.sourcemap.Chunk.VLQSourceMap).addSourceMapping 9 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 10 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 11 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 12 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printProperty 13 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 14 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 15 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 16 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printDecls__anon_291846 17 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printDeclStmt__anon_159486 18 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printStmt 19 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printBlockBody 20 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printBlock 21 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printFunc 22 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 23 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printDecls__anon_291845 24 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printDeclStmt__anon_159485 25 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printStmt 26 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printBlockBody 27 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printBlock 28 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printFunc 29 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 30 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr 31 ??? src.js_printer.NewPrinter(true,*src.js_printer.NewWriter(src.js_printer.BufferWriter,(function 'writeByte'),(function 'writeAll'),(function 'getLastByte'),(function 'getLastLastByte'),(function 'reserveNext'),(function 'advanceBy')),false,true,false,true).printExpr Crash report saved to: ~/.bun/.bun-crash/v0.7.1_debug-1690207348238.crash Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord thread 1699973 panic: integer overflow /Users/admin/repos/bun/src/sourcemap/sourcemap.zig:1027:64: 0x1066b3253 in appendMappingToBuffer (bun-debug) encodeVLQWithLookupTable(current_state.original_column - prev_state.original_column), ^ /Users/admin/repos/bun/src/sourcemap/sourcemap.zig:1169:46: 0x106e59aff in append (bun-debug) this.data = appendMappingToBuffer(this.data, last_byte, prev_state, current_state); ^ /Users/admin/repos/bun/src/sourcemap/sourcemap.zig:1121:36: 0x1067532eb in appendMappingWithoutRemapping (bun-debug) try this.ctx.append(current_state, prev_state); ^ /Users/admin/repos/bun/src/sourcemap/sourcemap.zig:1310:48: 0x106753497 in appendMapping (bun-debug) b.appendMappingWithoutRemapping(current_state); ^ /Users/admin/repos/bun/src/sourcemap/sourcemap.zig:1352:32: 0x106143c2b in addSourceMapping (bun-debug) b.appendMapping(.{ ^ /Users/admin/repos/bun/src/js_printer.zig:1192:56: 0x106531697 in printExpr (bun-debug) printer.source_map_builder.addSourceMapping(location, printer.writer.slice()); ^ /Users/admin/repos/bun/src/js_printer.zig:2153:36: 0x1065303d3 in printExpr (bun-debug) p.printExpr(e.target, .postfix, target_flags); ^ /Users/admin/repos/bun/src/js_printer.zig:2167:40: 0x1065306f3 in printExpr (bun-debug) p.printExpr(arg, .comma, ExprFlag.None()); ^ /Users/admin/repos/bun/src/js_printer.zig:3456:28: 0x106c5783b in printProperty (bun-debug) p.printExpr(val, .comma, ExprFlag.Set{}); ^ /Users/admin/repos/bun/src/js_printer.zig:2545:40: 0x106533427 in printExpr (bun-debug) p.printProperty(props[0]); ^ /Users/admin/repos/bun/src/js_printer.zig:2167:40: 0x1065306f3 in printExpr (bun-debug) p.printExpr(arg, .comma, ExprFlag.None()); ^ /Users/admin/repos/bun/src/js_printer.zig:2502:40: 0x106532f13 in printExpr (bun-debug) p.printExpr(item, .comma, ExprFlag.None()); ^ /Users/admin/repos/bun/src/js_printer.zig:1170:32: 0x106c5fad3 in printDecls__anon_291846 (bun-debug) p.printExpr(value, .comma, flags); ^ /Users/admin/repos/bun/src/js_printer.zig:5041:25: 0x106539137 in printDeclStmt__anon_159486 (bun-debug) p.printDecls(keyword, decls, ExprFlag.None()); ^ /Users/admin/repos/bun/src/js_printer.zig:4087:44: 0x106527183 in printStmt (bun-debug) p.printDeclStmt(s.is_export, "var", s.decls.slice()); ^ /Users/admin/repos/bun/src/js_printer.zig:1006:28: 0x106c60033 in printBlockBody (bun-debug) p.printStmt(stmt) catch unreachable; ^ /Users/admin/repos/bun/src/js_printer.zig:1016:29: 0x106539f3f in printBlock (bun-debug) p.printBlockBody(stmts); ^ /Users/admin/repos/bun/src/js_printer.zig:1268:25: 0x10652dfeb in printFunc (bun-debug) p.printBlock(func.body.loc, func.body.stmts, null); ^ /Users/admin/repos/bun/src/js_printer.zig:2457:32: 0x1065328b3 in printExpr (bun-debug) p.printFunc(e.func); ^ /Users/admin/repos/bun/src/js_printer.zig:1170:32: 0x106c5e9ff in printDecls__anon_291845 (bun-debug) p.printExpr(value, .comma, flags); ^ /Users/admin/repos/bun/src/js_printer.zig:5041:25: 0x106538ef7 in printDeclStmt__anon_159485 (bun-debug) p.printDecls(keyword, decls, ExprFlag.None()); ^ /Users/admin/repos/bun/src/js_printer.zig:4084:44: 0x106527143 in printStmt (bun-debug) p.printDeclStmt(s.is_export, "let", s.decls.slice()); ^ /Users/admin/repos/bun/src/js_printer.zig:1006:28: 0x106c60033 in printBlockBody (bun-debug) p.printStmt(stmt) catch unreachable; ^ /Users/admin/repos/bun/src/js_printer.zig:1016:29: 0x106539f3f in printBlock (bun-debug) p.printBlockBody(stmts); ^ /Users/admin/repos/bun/src/js_printer.zig:1268:25: 0x10652dfeb in printFunc (bun-debug) p.printBlock(func.body.loc, func.body.stmts, null); ^ /Users/admin/repos/bun/src/js_printer.zig:2457:32: 0x1065328b3 in printExpr (bun-debug) p.printFunc(e.func); ^ /Users/admin/repos/bun/src/js_printer.zig:2282:32: 0x106531563 in printExpr (bun-debug) p.printExpr( ^ /Users/admin/repos/bun/src/js_printer.zig:2153:36: 0x1065303d3 in printExpr (bun-debug) p.printExpr(e.target, .postfix, target_flags); ^ /Users/admin/repos/bun/src/js_printer.zig:4678:32: 0x10652ce5f in printStmt (bun-debug) p.printExpr(s.value, .lowest, ExprFlag.ExprResultIsUnused()); ^ /Users/admin/repos/bun/src/js_printer.zig:5786:34: 0x106540acb in printAst__anon_159380 (bun-debug) try printer.printStmt(stmt); ^ /Users/admin/repos/bun/src/bundler.zig:1197:64: 0x106522c9b in printWithSourceMapMaybe__anon_159379 (bun-debug) inline else => |is_bun| try js_printer.printAst( ^ /Users/admin/repos/bun/src/bundler.zig:1269:47: 0x106522763 in printWithSourceMap__anon_159378 (bun-debug) return bundler.printWithSourceMapMaybe( ^ /Users/admin/repos/bun/src/bun.js/module_loader.zig:1185:69: 0x106572d07 in transpileSourceCode__anon_171242 (bun-debug) break :brk try jsc_vm.bundler.printWithSourceMap( ^ /Users/admin/repos/bun/src/bun.js/module_loader.zig:1619:45: 0x1065781ab in Bun__transpileFile (bun-debug) ModuleLoader.transpileSourceCode( ^ src/bun.js/bindings/ModuleLoader.cpp:593:28: 0x1059ba75f in fetchSourceCodeAsync (src/bun.js/bindings/ModuleLoader.cpp) src/bun.js/bindings/ZigGlobalObject.cpp:4904:22: 0x105a1a6d7 in moduleLoaderFetch (src/bun.js/bindings/ZigGlobalObject.cpp) ???:?:?: 0x1052ee1bb in _ipv6_cb (???) ???:?:?: 0x1052ec833 in _ipv6_cb (???) ???:?:?: 0x1175f01fb in ??? (???) ???:?:?: 0x11764b797 in ??? (???) ???:?:?: 0x117644f5b in ??? (???) ???:?:?: 0x117643dc7 in ??? (???) ???:?:?: 0x1176537c3 in ??? (???) ???:?:?: 0x11764ad3f in ??? (???) ???:?:?: 0x117652a9f in ??? (???) ???:?:?: 0x117642aff in ??? (???) ???:?:?: 0x1045e4a07 in _ipv6_cb (???) ???:?:?: 0x104f2c807 in _ipv6_cb (???) ???:?:?: 0x1052e9583 in _ipv6_cb (???) ???:?:?: 0x1054ba9f7 in _ipv6_cb (???) src/bun.js/bindings/bindings.cpp:2461:24: 0x105a4ad1b in JSC__JSModuleLoader__loadAndEvaluateModule (src/bun.js/bindings/bindings.cpp) /Users/admin/repos/bun/src/bun.js/bindings/shimmer.zig:186:41: 0x10744ebff in loadAndEvaluateModule (bun-debug) return matchNullable( ^ /Users/admin/repos/bun/src/bun.js/javascript.zig:1863:59: 0x10744e833 in reloadEntryPoint (bun-debug) promise = JSModuleLoader.loadAndEvaluateModule(this.global, &String.init(main_file_name)); ^ /Users/admin/repos/bun/src/bun.js/javascript.zig:1886:48: 0x106da965b in loadEntryPoint (bun-debug) var promise = try this.reloadEntryPoint(entry_path); ^ /Users/admin/repos/bun/src/bun_js.zig:244:30: 0x106648d33 in start (bun-debug) if (vm.loadEntryPoint(this.entry_path)) |promise| { ^ /Users/admin/repos/bun/src/bun.js/javascript.zig:123:13: 0x10603578b in callback (bun-debug) @call(.auto, Function, .{context}); ^ src/bun.js/bindings/bindings.cpp:3865:5: 0x105a4f297 in JSC__VM__holdAPILock (src/bun.js/bindings/bindings.cpp) /Users/admin/repos/bun/src/bun.js/bindings/shimmer.zig:186:41: 0x105c14b53 in holdAPILock (bun-debug) return matchNullable( ^ /Users/admin/repos/bun/src/bun_js.zig:230:35: 0x105f32b1f in boot (bun-debug) vm.global.vm().holdAPILock(&run, callback); ^ /Users/admin/repos/bun/src/cli.zig:1565:23: 0x105f4a33f in maybeOpenWithBunJS (bun-debug) BunJS.Run.boot( ^ /Users/admin/repos/bun/src/cli.zig:1468:47: 0x105f45b97 in start (bun-debug) if (maybeOpenWithBunJS(&ctx)) { ^ /Users/admin/repos/bun/src/cli.zig:58:22: 0x105b54f97 in start__anon_3833 (bun-debug) Command.start(allocator, log) catch |err| { ^ /Users/admin/repos/bun/src/main.zig:38:22: 0x105b53797 in main (bun-debug) bun.CLI.Cli.start(bun.default_allocator, stdout, stderr, MainPanicHandler); ^ /Users/admin/.bun/install/global/node_modules/@oven/zig-darwin-arm64/lib/std/start.zig:598:22: 0x105b53467 in main (bun-debug) root.main(); ^ ???:?:?: 0x1a002bf27 in ??? (???) ???:?:?: 0x2c2b7fffffffffff in ??? (???) error: script "story:dev" exited with code 6 (SIGABRT) ```

Additional information

The function receiveMessageOnPort on worker_threads isn't implemented yet:

Relevant tickets

birkskyum commented 1 year ago

Update with bun 0.7.2

➜ bun --bun run story:dev  
$ histoire dev
Error while loading /Users/admin/repos/histoire-vue3-starter/histoire.config.ts
4093 |               return debug("[native]", filename), _interopDefault(nativeRequire(id));
4094 |             } catch (error) {
4095 |               debug("Native require error:", error), debug("[fallback]", filename), source = transform({ filename, source, ts: isTypescript });
4096 |             }
4097 | 
4098 |           const mod = new external_module_.Module(filename);
             ^
TypeError: undefined is not a constructor (evaluating 'new external_module_.Module(filename)')
      at jiti (/Users/admin/repos/histoire-vue3-starter/node_modules/jiti/dist/jiti.js:1:0)
      at /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:150:21
      at loadConfigFile (/Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:145:37)
      at /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:226:23
      at resolveConfig (/Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:222:36)
      at /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/context.js:5:25
      at createContext (/Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/context.js:4:36)
      at /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/commands/dev.js:9:26
      at start (/Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/commands/dev.js:8:27)
      at /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/commands/dev.js:40:17
error: script "story:dev" exited with code 1 (SIGHUP)
End of debug logs ```zig [JSC] tryFromJS (src/string.zig:490) [SYS] openat(-2, /var/folders/8y/htw2q5ss5ms9zy4z8rfv393c0000gn/T/node-jiti/histoire-vue3-starter-histoire.config.ts.0774e25a.js) = 5 [SYS] fstat(5) = 0 [SYS] read(5, 376) = 360 (0.005ms) [SYS] read(5, 16) = 0 (0.001ms) [SYS] close(5) [CPP] ZigString__toExternalValue [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [CPP] JSValue__isBoolean [CPP] JSValue__jsType [CPP] JSGlobalObject__vm [CPP] JSValue__isCallable [CPP] JSValue__toZigString [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) Error while loading /Users/admin/repos/histoire-vue3-starter/histoire.config.ts [CPP] JSGlobalObject__vm [CPP] VM__collectAsync [CPP] VM__blockBytesAllocated [CPP] JSGlobalObject__vm [CPP] JSInternalPromise__status [CPP] JSGlobalObject__vm [CPP] JSInternalPromise__status [CPP] JSGlobalObject__vm [CPP] JSInternalPromise__result [JSC] dispatchOnBeforeExit (src/bun.js/javascript.zig:368) [CPP] JSGlobalObject__handleRejectedPromises [CPP] JSGlobalObject__vm [CPP] JSPromise__result [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__bunVM [CPP] JSGlobalObject__vm [CPP] JSValue__isException [CPP] JSValue__isAggregateError [CPP] JSValue__jsType [CPP] JSValue__toZigException [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [fs] openat(0, /Users/admin/repos/histoire-vue3-starter/node_modules/jiti/dist/jiti.js) = 5 [fs] stat(5) = 248796 [fs] pread(5, 248796) = 248796 [SYS] close(5) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4093 | return debug("[native]", filename), _interopDefault(nativeRequire(id)); [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4094 | } catch (error) { [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4095 | debug("Native require error:", error), debug("[fallback]", filename), source = transform({ filename, source, ts: isTypescript }); [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4096 | } [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4097 | [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) 4098 | const mod = new external_module_.Module(filename); ^ TypeError: undefined is not a constructor (evaluating 'new external_module_.Module(filename)') [JSC] deref (src/string.zig:95) [CPP] JSValue__jsType [CPP] JSValue__getIfPropertyExistsImpl [CPP] JSValue__getIfPropertyExistsImpl [CPP] JSValue__getIfPropertyExistsImpl [CPP] JSValue__getIfPropertyExistsImpl [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at jiti ([JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/jiti/dist/jiti.js:1:0[JSC] deref (src/string.zig:95) ) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:150:21[JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at asyncFunctionResume (:1:20) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at loadConfigFile ([JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:145:37[JSC] deref (src/string.zig:95) ) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:226:23[JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at asyncFunctionResume (:1:20) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at resolveConfig ([JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/config.js:222:36[JSC] deref (src/string.zig:95) ) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/context.js:5:25[JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at asyncFunctionResume (:1:20) [JSC] deref (src/string.zig:95) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) [JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) at createContext ([JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105) [JSC] ref (src/string.zig:107) /Users/admin/repos/histoire-vue3-starter/node_modules/histoire/dist/node/context.js:4:36[JSC] deref (src/string.zig:95) ) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] deref (src/string.zig:95) [JSC] dispatchOnExit (src/bun.js/javascript.zig:360) [JSC] fixDeadCodeElimination (src/napi/napi.zig:1500) error: script "story:dev" exited with code 1 (SIGHUP) ```
paperdave commented 1 year ago

next blocker i think is worker argv which i could probably do pretty easily

image
birkskyum commented 1 year ago
birkskyum commented 10 months ago

I now get:

➜ bun --bun run story:dev
$ histoire dev
Failed to resolve dependency: vscode-oniguruma, present in 'optimizeDeps.include'
Failed to resolve dependency: vscode-textmate, present in 'optimizeDeps.include'
Using 5 threads for story collection
Collect stories start all
  ➜  Local:   http://localhost:6006/

Looking at the optimizeDeps, it appear to be shiki related:

          include: optimizeDeps([
            'flexsearch',
            'shiki-es',
            // Shiki dependencies
            'vscode-oniguruma',
            'vscode-textmate',
          ]),
birkskyum commented 9 months ago

With latest bun 1.0.28, it just hangs and shows this:

➜ bun --bun run story:dev
$ histoire dev
Using 5 threads for story collection
Collect stories start all
  ➜  Local:   http://localhost:6006/
  ➜  Network: use --host to expose
orange-buffalo commented 7 months ago

It is the same result with v1.1.3. Is there anything we as users can to do to help troubleshooting this issue?

birkskyum commented 5 months ago

It now returns:

➜ bun --bun run story:dev 
$ histoire dev
70 |             supportPluginId = p.pluginIds[0];
71 |             break;
72 |         }
73 |     }
74 |     if (!supportPluginId) {
75 |         throw new Error(`No support plugin found for file ${absoluteFilePath}`);
                   ^
error: No support plugin found for file /Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/.bin/browserslist
      at addStory (/Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/histoire/dist/node/stories.js:75:15)
      at /Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/histoire/dist/node/stories.js:41:27
      at emit (node:events:181:95)
      at emitWithAll (/Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/chokidar/index.js:540:3)
      at /Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/chokidar/index.js:632:3
      at _emit (/Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/chokidar/index.js:557:13)
      at emitAdd (/Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/chokidar/lib/fsevents-handler.js:421:5)
      at /Users/admin/Downloads/histoire-vue3-starter (1)/node_modules/chokidar/lib/fsevents-handler.js:496:7

Bun v1.1.10-canary.1+4b8f89cb7 (macOS arm64)
error: script "story:dev" exited with code 1
orange-buffalo commented 4 months ago

With latest bun 1.1.20 it still hangs on

$ bun --bun run story:dev
$ histoire dev
Using 16 threads for story collection
Collect stories start all
  ➜  Local:   http://localhost:6006/
  ➜  Network: use --host to expose
orange-buffalo commented 3 months ago

Same with 1.1.26