Skip to content

ReferenceError: File is not defined in GitHub Actions #1300

@tangramua

Description

@tangramua

There were no code changes, it just stopped working.

Expected behavior

Successful theme build.

Actual behavior

Unsuccessful theme build.

Steps to reproduce behavior

Environment

Stencil-cli version stencil --version: 7.3.4

Node version node -v: v18.14.0

NPM version npm -v: 9.3.1

OS: ubuntu-latest (ubuntu-24.04)

2025-08-05T16:17:21.1189885Z /opt/hostedtoolcache/node/18.14.0/x64/lib/node_modules/@bigcommerce/stencil-cli/node_modules/undici/lib/web/webidl/index.js:512
2025-08-05T16:17:21.1191238Z webidl.is.File = webidl.util.MakeTypeAssertion(File)
2025-08-05T16:17:21.1198698Z                                                ^
2025-08-05T16:17:21.1199061Z 
2025-08-05T16:17:21.1199334Z ReferenceError: File is not defined
2025-08-05T16:17:21.1200725Z     at Object.<anonymous> (/opt/hostedtoolcache/node/18.14.0/x64/lib/node_modules/@bigcommerce/stencil-cli/node_modules/undici/lib/web/webidl/index.js:512:48)
2025-08-05T16:17:21.1202151Z     at Module._compile (node:internal/modules/cjs/loader:1226:14)
2025-08-05T16:17:21.1202988Z     at Module._extensions..js (node:internal/modules/cjs/loader:1280:10)
2025-08-05T16:17:21.1203788Z     at Module.load (node:internal/modules/cjs/loader:1089:32)
2025-08-05T16:17:21.1207811Z     at Module._load (node:internal/modules/cjs/loader:930:12)
2025-08-05T16:17:21.1208539Z     at Module.require (node:internal/modules/cjs/loader:1113:19)
2025-08-05T16:17:21.1209233Z     at require (node:internal/modules/cjs/helpers:103:18)
2025-08-05T16:17:21.1210358Z     at Object.<anonymous> (/opt/hostedtoolcache/node/18.14.0/x64/lib/node_modules/@bigcommerce/stencil-cli/node_modules/undici/lib/web/fetch/util.js:12:20)
2025-08-05T16:17:21.1211502Z     at Module._compile (node:internal/modules/cjs/loader:1226:14)
2025-08-05T16:17:21.1214800Z     at Module._extensions..js (node:internal/modules/cjs/loader:1280:10)
2025-08-05T16:17:21.1215251Z 
2025-08-05T16:17:21.1215419Z Node.js v18.14.0
2025-08-05T16:17:21.1323694Z ##[error]Process completed with exit code 1.
2025-08-05T16:17:21.1390876Z Cleaning up orphan processes

Full logs: logs_41976614700.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions