Closed iceniveth closed 5 months ago
It works for me :]
Check that you are on Node 18 or higher
Yes, was on Node 20.9
Ha, you are on windows, do you get any error in the console?
Yes on Windows, This is what it's showing
I tried it on StackBlits, it does work https://stackblitz.com/~/github.com/iceniveth/bullboard-hono
Might be a Windows thing. 😅
I think that it is related to differance of paths delimeters between windows and rest of the world.
probably related to this line, https://github.com/felixmosh/bull-board/blob/master/packages/hono/src/HonoAdapter.ts#L176. Will you be able to debug these paths?
I tried logging:
console.log(node_path_1.default.join(this.basePath, staticRoute))
Which does return \ui\static
Was able to make it work with
p.replace(node_path_1.default.join(this.basePath, staticRoute).replace(/\\/g, '/'), '')
Though, not sure if there is a better approach.
Thanx for debugging this
Can you test v5.20.3
to check if this solved?
Ahm, it still doesn't work. I think it also broke for Linux. 😅
try v5.20.4
:]
Thanks a lot 🙏, works on both Linux / Windows
Steps to reproduce
index.js
from: hono examplenpm install @bull-board/hono @hono/node-server bullmq hono
npm init -y
scripts: { "start": "node index.js" }
inpackage.json
npm run start
Here's the reproduction repo
Environment