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
@borkdude you're right. Took some fiddling with deno deploy (will blog later), but here we are: https://multi-ttt-134n2qtfaad5.gregorybleiker.deno.net/
anyone feel like a game?
https://multi-ttt-134n2qtfaad5.gregorybleiker.deno.net/game?game_id=DUDE
full 😞
did you open 2 tabs?
no
oh sorry I did...
doh!
https://multi-ttt-134n2qtfaad5.gregorybleiker.deno.net/game?game_id=greg
haha
great
it's really minimal, isn't it. Thanks for your help
That's awesome! Please share it to #news-and-articles for more exposure :)
Thanks! is it allowed to cross-post?
yeah
@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.I have no clue. Are you running with --cached-only?
You can perhaps try:
deno cache
My suspicion is that deno deploy wants to have everything available in the cache, but nbb uses dynamic imports