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

exception in rendering board when loading a new fen #15

Open
eddhibyassine opened this issue Mar 19, 2021 · 3 comments
Open

exception in rendering board when loading a new fen #15

eddhibyassine opened this issue Mar 19, 2021 · 3 comments

Comments

@eddhibyassine
Copy link

eddhibyassine commented Mar 19, 2021

I'm getting this error when i load a new fen to the board

callstack:
Uncaught (in promise) TypeError: Cannot read property 'getBoundingClientRect' of null
at HTMLElement._getAnimationStyles (chessboard-element.js?a3ca:504)
at HTMLElement._renderBoard (chessboard-element.js?a3ca:435)
at HTMLElement.render (chessboard-element.js?a3ca:330)
at HTMLElement.update (lit-element.js?0906:219)
at HTMLElement.performUpdate (updating-element.js?b22b:554)
at HTMLElement._enqueueUpdate (updating-element.js?b22b:507)

It still load the position without issue but i don't know if this is a serious issue or i just ignore it.
I'm testing it in a react application and loading the script in the entry point 'index.js' of the application
// First line of index.js
import 'chessboard-element';

@christyjacob4
Copy link

Same here. Im getting this error as well .

@justinfagnani
Copy link
Owner

Can either of you provide a minimal reproduction?

@eddhibyassine
Copy link
Author

Thank you for your feedback.

i prepared an exemple using 'create react app' and i integrated chessboard-element into that project
you just need to click randomly and you will have the error

Repo
https://github.com/eddhibyassine/test-chessboard-element

Video showing the error
https://youtu.be/6S_xWT12pVs

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

3 participants