Skip to content
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

Property 'undo' does not exists for type 'ChessboardRef' #7

Open
ichibha opened this issue Oct 2, 2023 · 3 comments
Open

Property 'undo' does not exists for type 'ChessboardRef' #7

ichibha opened this issue Oct 2, 2023 · 3 comments

Comments

@ichibha
Copy link

ichibha commented Oct 2, 2023

When trying to use the undo method on a ChessboardRef object, TypeScript throws an error: Property 'undo' does not exists for type 'ChessboardRef', while resetBoard works. I found this issue for versions 0.1.1 and 0.1.2.
スクリーンショット 2023-10-02 18 04 43

@enzomanuelmangano
Copy link
Owner

Hi @ichibha, thanks for opening the issue. I'm able to reproduce the issue and I'll solve it as soon as possible 🙌

@BigKahuna7385
Copy link

This still seems to be an issue, if I'm not mistaken.
Will there be a fix or is there an alternative?

@raahimkhan
Copy link

Having the same issue as mentioned above, i.e., "TypeError: chessboardRef.current?.undo is not a function (it is undefined), js engine: hermes".

Will this be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants