oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2.01k stars 408 forks source link

export function #157

Open dpavluchenko opened 6 years ago

dpavluchenko commented 6 years ago

I want to use Chessboard in the vue js component, but I can not import it

vesper8 commented 4 years ago

same here.. when I try to import it says

This dependency was not found:

* @chrisoakman/chessboardjs in ./src/mixins/chessboard.js

To install it, you can run: npm install --save @chrisoakman/chessboardjs

But I already did install it

I tried both

import '@chrisoakman/chessboardjs';

and

import ChessBoard from '@chrisoakman/chessboardjs';

Did you find a workaround @dpavluchenko ?

Do you plan on supporting this @oakmac ?

Thanks!

dpavluchenko commented 4 years ago

I just used it without npm, manually added to project

пт, 1 нояб. 2019 г. в 01:49, C-Bass notifications@github.com:

same here.. when I try to import it says

This dependency was not found:

  • @chrisoakman/chessboardjs in ./src/mixins/chessboard.js

To install it, you can run: npm install --save @chrisoakman/chessboardjs

But I already did install it

I tried both

import '@chrisoakman/chessboardjs';

and

import ChessBoard from '@chrisoakman/chessboardjs';

Did you find a workaround @dpavluchenko https://github.com/dpavluchenko ?

Do you plan on supporting this @oakmac https://github.com/oakmac ?

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oakmac/chessboardjs/issues/157?email_source=notifications&email_token=AEX5WDSOYUEZDM725JGJNNTQRNVJXA5CNFSM4E5JGDSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECZSY4Q#issuecomment-548613234, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEX5WDXR7AL4IEWXAPXY64DQRNVJXANCNFSM4E5JGDSA .

oakmac commented 4 years ago

I think this line should allow Chessboard.js to participate in most JavaScript package systems (ie: node.js, babel, etc)

redcpp commented 4 years ago

Tested both imports by @vesper8 both in vue and in a node test file and neither of them worked. When I looked into node_modules/@chrisoakman/chessboardjs/dist/chessboard-1.0.0.js file that line was missing.

oakmac commented 4 years ago

Thank you for checking in on this @redcpp - seems this needs further investigation :)

benjaminpjones commented 1 year ago

I am also having trouble importing to Vue