Skip to content

Adding an object to game data #1211

Answered by mzagrabe
mzagrabe asked this question in Q&A
Feb 6, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Agreed. There are subtleties of using the bgio framework that make working with vanilla JS a little more involved.

I write front-end code so infrequently I forgot about devtools. Here is the error in the console:

Uncaught Error: Move state is not JSON-serialiazable.
See https://boardgame.io/documentation/#/?id=state for more information.
    at turn-order-8cc4909b.js:435:19
    at turn-order-8cc4909b.js:367:19
    at Object.onBegin (reducer-24ea3e4c.js:49:20)
    at StartPhase (reducer-24ea3e4c.js:228:33)
    at Process (reducer-24ea3e4c.js:167:21)
    at Object.init (reducer-24ea3e4c.js:666:20)
    at InitializeGame (initialize-7316768f.js:44:25)
    at new _ClientImpl (client-f7f02b82.j…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mzagrabe
Comment options

Answer selected by mzagrabe
@fladrif
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants