-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo example doesn't work #36
Comments
As niklasf points out here, dests is supposed to be a map instead of an object. Replace the calcMovable function with this code and it should work:
|
This work, thanks. I thought map shouldn't work, because movable props has object type. |
I went ahead and created pull request #37. |
The 1.5 build of react-chessground uses chessground ^7.6.12 which has some bugs where dests is expected to be a Map in some cases and a POJO in others. I was able to work around this issue with the following code. I've left my debugging code in.
|
I thought that was mistake in my code, but then I try to run example from this repository and got same error, problem with "movable" props, something wrong with dests key
The text was updated successfully, but these errors were encountered: