Support
Quality
Security
License
Reuse
Coming Soon for all Libraries!
Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Use chessboard.js to show game positions alongside your expert commentary.
Use chessboard.js to have a tactics website where users have to guess the best move.
Integrate chessboard.js and chess.js with a PGN database and allow people to search and playback games (see Example 5000)
Build a chess server and have users play their games out using the chessboard.js board.
Developer Tools
# create a build in the build/ directory
npm run build
# re-build the website
npm run website
QUESTION
Problem in importing chessboard.js in vue application
Asked 2020-Dec-30 at 14:01I am trying to import chessboard.js on my jetstream-vue application. After creating the project I ran
npm install @chrisoakman/chessboardjs
and it's in my node_modules folder. But when i tried import Chessboard from '@chrisoakman/chessboardjs'
on app.js it shows error as
ERROR in ./resources/js/app.js
Module not found: Error: Can't resolve '@chrisoakman/chessboardjs' in '/home/user/project-chess/resources/js'
@ ./resources/js/app.js 9:0-51
@ multi ./resources/js/app.js ./resources/css/app.css
Is there any other way I should try to import it or from to a different file than app.js.
ANSWER
Answered 2020-Dec-30 at 14:01@chrisoakman/chessboardjs can't be imported, since it doesn't export anything.
Look at the code, at the end it says:
// TODO: do module exports here
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Explore Related Topics