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

Build failure: No such file "stockfish.js/src/stockfish.worker.js"

Open erjoalgo opened this issue 3 weeks ago • 0 comments

Where can I find this file?

I see it referenced in buid.js

...
    var stockfishWASMPath = p.join(srcPath, "stockfish.wasm");
    var stockfishWASMLoaderPath = p.join(srcPath, "stockfish.js");
    var stockfishWorkerThreadPath = p.join(srcPath, "stockfish.worker.js");
    
...

These are the stockfish* files I see in the src/ directory:

stockfish-16.1-asm.js
stockfish-16.1.js
stockfish-16.1-lite.js
stockfish-16.1-lite-single.js
stockfish-16.1-lite-single.wasm
stockfish-16.1-lite.wasm
stockfish-16.1-single.js
stockfish-16.1-single.wasm
stockfish-16.1.wasm
stockfish.js
stockfish.wasm

I tried symlinking stockfish.worker.js to one of the worker thread options listed in the README, and the build appears to have compiled successfully. If this is correct, it may be helpful to include this step explicitly in the README.

erjoalgo avatar Jan 31 '25 18:01 erjoalgo