chessboardjs icon indicating copy to clipboard operation
chessboardjs copied to clipboard

export function

Open dpavluchenko opened this issue 7 years ago • 6 comments

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

dpavluchenko avatar Apr 27 '18 12:04 dpavluchenko

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!

vesper8 avatar Oct 31 '19 23:10 vesper8

I just used it without npm, manually added to project

пт, 1 нояб. 2019 г. в 01:49, C-Bass [email protected]:

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 .

dpavluchenko avatar Nov 01 '19 20:11 dpavluchenko

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

oakmac avatar Jun 03 '20 23:06 oakmac

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.

redcpp avatar Jun 07 '20 23:06 redcpp

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

oakmac avatar Jun 08 '20 02:06 oakmac

I am also having trouble importing to Vue

benjaminpjones avatar Jun 26 '23 00:06 benjaminpjones