boardgameio / boardgame.io

State Management and Multiplayer Networking for Turn-Based Games
https://boardgame.io
MIT License
9.97k stars 705 forks source link

Server location incorrect #522

Closed MitchellJeppson closed 4 years ago

MitchellJeppson commented 4 years ago

The doc import for server is:

const Server = require('boardgame.io/server').Server;

but this module does not exist. By contrast this line does work;

const Server = require('boardgame.io/dist/server').Server;

Is this just a missed doc update or something larger?

nicolodavis commented 4 years ago

This was a bug that has been fixed and will be available in the next release. The docs are correct.

On Wed, Nov 27, 2019, 4:47 AM Mitchell Jeppson notifications@github.com wrote:

The doc import for server is:

const Server = require('boardgame.io/server').Server;

but this module does not exist. By contrast this line does work;

const Server = require('boardgame.io/dist/server').Server;

Is this just a missed doc update or something larger?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nicolodavis/boardgame.io/issues/522?email_source=notifications&email_token=AABZULXDHMLZJ23BRVWD523QVWDONA5CNFSM4JR5TSIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4HK5WQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABZULX6FF3MKL3TGNOCNXLQVWDONANCNFSM4JR5TSIA .