-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Histoire (Vite framework for UI stories) #3787
Comments
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[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) |
Closed
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:
|
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 |
It is the same result with v1.1.3. |
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
|
With latest bun 1.1.20 it still hangs on
|
4 tasks
Same with 1.1.26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
bun i
What is the expected behavior?
What do you see instead?
last part of debug log
Additional information
The function receiveMessageOnPort on worker_threads isn't implemented yet:
Relevant tickets
The text was updated successfully, but these errors were encountered: