My website will not run the chess.js library properly, I am not sure what is wrong?
I am trying to make a chess website using the chess.js library. When I download the library and try to run my site i get an error when running the following line of code: const chess = new Chess(); I am not sure what is wrong. I asked chatGPT and it said my import was probably incorrect. (Import code: import Chess from ‘./node_modules/chess.js/dist/chess.js’) I am not sure what is wrong. I am using the latest version of chess.js and the latest version of node.js to run it. I am not sure what is wrong, any tips would be helpful. Thanks