You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Node.js environment the new 1.0.0 versions of chess.js work fine on the server side.
But how do I make it work on the client side? What are the steps to follow? I can't find documentation.
What about CDN and instance declaration with var chess = new Chess(); .
Is there any other way to do it?
The text was updated successfully, but these errors were encountered:
@AlonsoDo I believe you're running into this issue due to the differences between ESM vs CommonJS more info here. Sorry for the lame answer, but maybe try using a bundler (webpack or rollup)? There are a couple of things I'd like to try to support both environments, but my development time is extremely limited for the next few weeks.
In a Node.js environment the new 1.0.0 versions of chess.js work fine on the server side.
But how do I make it work on the client side? What are the steps to follow? I can't find documentation.
What about CDN and instance declaration with var chess = new Chess(); .
Is there any other way to do it?
The text was updated successfully, but these errors were encountered: