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

TypeError: Chess is not a constructor #14

Closed
sk0le opened this issue Apr 2, 2021 · 2 comments
Closed

TypeError: Chess is not a constructor #14

sk0le opened this issue Apr 2, 2021 · 2 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@sk0le
Copy link

sk0le commented Apr 2, 2021

chess-web-api version: 1.1.0

Steps to reproduce

Just call chessAPI.getGameByID(gameId).then((res) => console.log(res));

Expected behavior

Get data

Actual behavior

Error: TypeError: Chess is not a constructor
https://prnt.sc/112ie25

@andyruwruw
Copy link
Owner

Our current test suite is passing so this is curious.

We recently added this endpoint along with chess.js as a needed dependency. Can you check that chess.js was installed to your node_modules?

@sk0le
Copy link
Author

sk0le commented Apr 3, 2021

https://prnt.sc/1138w38 - package.json
https://prnt.sc/1138wjk - node modules

@andyruwruw andyruwruw added bug Something isn't working invalid This doesn't seem right labels Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants