stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

ReferenceError: File is not defined in GitHub Actions

Open tangramua opened this issue 7 months ago • 2 comments

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

tangramua avatar Aug 05 '25 16:08 tangramua

@tangramua is it reproducible using latest stencil cli version?

jairo-bc avatar Aug 06 '25 08:08 jairo-bc

@tangramua is it reproducible using latest stencil cli version?

no. Latest stencil-cli & node v20 works fine.

tangramua avatar Aug 06 '25 16:08 tangramua