Closed vjuneja closed 4 years ago
can you reproduce that issue with chessground alone?
Yes. If you unzip the attached folder and open test.htm
in your browser. I didnt bother working on the css so ignore that the board looks massive and just click on any piece and see the exception in the console.
If i send the movable object as a map instead of an object, the exception goes away. If that is the expectation from clients going forward, you can close this bug and react-chessground
component will need to be fixed.
Although in that case, I don't think it should have been part of a minor version update.
clients need to use Map
since 7.8
For anyone with breaking changes, here is an example of how to do it now: https://github.com/ornicar/chessground-examples/blob/28ceac2c878c0187b5ad69aa68c5e25eba9f71ff/src/util.ts#L4
I am using the react-chessground component instead of using
chessground
directly so I have also filed this issue with them, but pretty sure it is caused by this checkin https://github.com/ornicar/chessground/commit/c190c1823f5836aebc156a248289fa300a248675#diff-a2fcebf1963fad0da40a844a8d67da83R48This exception started happening with version
7.8.0
ofchessground
. For a temporary fix, I have hardcoded my yarn.lock file to versionchessground@7.7.2
.Thanks.