increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build compile.js

david-pfx opened this issue · comments

New clone of PuzzleScript, then

>npm i rimraf@3 compress-images web-resource-inliner ncp gifsicle@5.3.0 concat ycssmin terser gzipper html-minifier-terser glob   
>node .\compile.js

Usual console messages down to here:

Optimizing documentation gifs
TypeError: glob is not a function
TypeError: glob is not a function
<Dumps a bunch of text then:>
RuntimeError: abort(TypeError: glob is not a function). Build with -s ASSERTIONS=1 for more info.
    at process.abort (D:\MyDocs\dev\Polyomino\PSForks\(increpare)PuzzleScript\node_modules\@gfx\zopfli\dist\libzopfli.js:1:11690)
    at process.emit (node:events:513:28)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

I'm sure this used to work, but not now.
[With rimraf@4 the error is Illegal characters in path, due to breaking change in rimraf.]

Basically the same issue as the previous issues you've had with compile.js - the glob package released version 10 recently and it changed its interface. You'll want to pin glob to version 9. Your PR #956 will already fix this.

(Edit: It turned out actually glob 9 also broke things - so glob 8 is the correct version)

I mention the right version now in 4a025e4