stockfish.js icon indicating copy to clipboard operation
stockfish.js copied to clipboard

Cannot find module 'D:\Node\node_modules\stockfish\src\stockfish.js'.

Open SamarthKadam opened this issue 1 year ago • 4 comments

Y is it saying it. Even when using it in nextjs it says module not found

SamarthKadam avatar Jul 19 '24 09:07 SamarthKadam

Same issue here Error: Cannot find module 'C:\codes\freechess\node_modules\stockfish\src\stockfish.js'. Please verify that the package.json has a valid "main" entry

Gameboy612 avatar Aug 01 '24 19:08 Gameboy612

solved, change package.json "main": "src/stockfish.js" to "main": "src/stockfish-nnue-16.js" image

Gameboy612 avatar Aug 01 '24 19:08 Gameboy612

@Gameboy612 thank you

SamarthKadam avatar Aug 09 '24 08:08 SamarthKadam

You're welcome!

Gameboy612 avatar Aug 20 '24 02:08 Gameboy612