Skip to content

TypeError: glob.sync is not a function using 9.0.1 (worked in 8.1.0) #493

@elebitzero

Description

@elebitzero

The OpenRefine pull request broke today when it pulled the latest Glob 9.0.1 version during the build. The last good version was 8.1.0.

See the error message below:

Run npm install --save glob && node main/tests/cypress/build-test-matrix.js
...
 + glob@9.0.1
   added 8 packages from 3 contributors and audited 8 packages in 0.866s
/home/runner/work/OpenRefine/OpenRefine/main/tests/cypress/build-test-matrix.js:58
    const files = glob.sync(`main/tests/cypress/${pattern}`);
                       ^

TypeError: glob.sync is not a function
    at /home/runner/work/OpenRefine/OpenRefine/main/tests/cypress/build-test-matrix.js:58:24
    at Array.forEach (<anonymous>)
    at /home/runner/work/OpenRefine/OpenRefine/main/tests/cypress/build-test-matrix.js:57:15
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/OpenRefine/OpenRefine/main/tests/cypress/build-test-matrix.js:56:8)
    at Module._compile (internal/modules/cjs/loader.js:1114:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:979:32)
    at Function.Module._load (internal/modules/cjs/loader.js:819:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
Error: Process completed with exit code 1.

References:
OpenRefine PR: OpenRefine/OpenRefine#5651
build-test-matrix.js: https://github.com/OpenRefine/OpenRefine/blob/7cacc9117f0f4bcc7792392f2afe0e1f2e712fa2/main/tests/cypress/build-test-matrix.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions