-
I have tried to run the remote multiplayer examples (chess, lobby) from While Attempts❌ Plain nodeSimply running the server via Node does not work because the dependencies use ES imports. I assume it could work when using 🤔 Similar to docsUsing
// status quo in the repo, does not work because esm does not resolve `alias` in package.json
import { Server, Origins } from 'boardgame.io/server';
// works, but relative imports are kind of "eh"
import { Server, Origins } from '../../dist/cjs/server';
❓ ParcelI tried running the server using Parcel, in the hopes of side-stepping the alias issue, but while Parcel does not complain, the server also does not work. Not quite sure if Parcel is fundamentally not suitable for server-side code, or if I am doing something wrong. I don't have noteworthy prior experience with Parcel apart from running a sample or two some years ago (more of a webpack person, not necessarily by choice). A quick google did not provide much relevant information, although it seems (sort of obviously) primarily geared towards web app bundling with html entry points. Additionally, ConclusionEither I am missing something obvious, or this could use a Apart from that it was really comfortable to get everything running in VS Code using Dev containers. Has it been considered to bundle a preconfigured |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey! Here are the instructions from the main README:
That both starts the front-end server and the game server as parallel processes. For reference, this is the actual command used to run just the server, but it’s less friendly looking 😆 : Line 12 in c7c3fab
I’m not familiar with dev containers. Happy to take a look at a PR adding that JSON config if it would be helpful. Do you have a good link with more information about that feature? |
Beta Was this translation helpful? Give feedback.
Hey! Here are the instructions from the main README:
That both starts the front-end server and the game server as parallel processes. For reference, this is the actual command used to run just the server, but it’s less friendly looking 😆 :
boardgame.io/package.json
Line 12 in c7c3fab