nbb

Gregory Bleiker 2025-08-03T15:23:25.150939Z

I've written a multiplayer server in one file using nbb, deno and datastar. Check it out: https://gre.gorio.ch/projects/multiplayer-tic-tac-toe/multiplayer-tic-tac-toe

🚀 4
Gregory Bleiker 2025-08-05T15:20:39.267399Z

@borkdude you're right. Took some fiddling with deno deploy (will blog later), but here we are: https://multi-ttt-134n2qtfaad5.gregorybleiker.deno.net/

Gregory Bleiker 2025-08-05T15:20:42.830549Z

anyone feel like a game?

Gregory Bleiker 2025-08-05T15:25:31.762329Z

full 😞

Gregory Bleiker 2025-08-05T15:25:43.335349Z

did you open 2 tabs?

borkdude 2025-08-05T15:25:54.297869Z

no

borkdude 2025-08-05T15:26:05.484869Z

oh sorry I did...

borkdude 2025-08-05T15:26:07.824339Z

doh!

borkdude 2025-08-05T15:26:47.738219Z

haha

borkdude 2025-08-05T15:26:50.089099Z

great

Gregory Bleiker 2025-08-05T15:27:10.072759Z

it's really minimal, isn't it. Thanks for your help

borkdude 2025-08-03T15:58:17.152939Z

That's awesome! Please share it to #news-and-articles for more exposure :)

Gregory Bleiker 2025-08-03T16:00:35.540799Z

Thanks! is it allowed to cross-post?

borkdude 2025-08-03T16:00:43.423379Z

yeah

Gregory Bleiker 2025-08-04T16:52:43.371539Z

@borkdude I'm trying to run this on deno.deploy. It gives me

error: Uncaught (in promise) Error: Specifier not found in cache: "", --cached-only is specified.
    at 
Any idea why? I added react and react-dom as npm dependencies.

borkdude 2025-08-04T17:18:45.044129Z

I have no clue. Are you running with --cached-only?

borkdude 2025-08-04T17:18:55.063359Z

You can perhaps try:

deno cache 

borkdude 2025-08-04T17:20:33.869799Z

My suspicion is that deno deploy wants to have everything available in the cache, but nbb uses dynamic imports