I am facing an issue while trying to incorporate chessboard.js into my jetstream-vue application. Following the creation of the project, I executed the command
npm install @chrisoakman/chessboardjs
which successfully downloaded the package into my node_modules folder. However, when attempting to import it using import Chessboard from '@chrisoakman/chessboardjs'
in app.js, an error is displayed as follows:
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
Do you have any suggestions on an alternate method for importing the chessboard.js library, or perhaps should I attempt to do so from a different file other than app.js?