Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"TypeError: handle.executionContext is not a function" at respecDocWriter.js:308 #4538

Closed
nondebug opened this issue Sep 13, 2023 · 1 comment · Fixed by #4539
Closed

"TypeError: handle.executionContext is not a function" at respecDocWriter.js:308 #4538

nondebug opened this issue Sep 13, 2023 · 1 comment · Fixed by #4539
Labels

Comments

@nondebug
Copy link
Contributor

Description of problem

After https://github.com/w3c/respec/issues/4535 was resolved I tried re-running checks on w3c/gamepad#168 and got a different error. Generate Static HTML step fails with "TypeError: handle.executionContext is not a function"

Failed run: https://github.com/w3c/gamepad/actions/runs/6169448759/job/16743712129

What happened (e.g., it crashed)?:

  file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected][email protected]/node_modules/respec/tools/respecDocWriter.js:308
      return await handle.executionContext().evaluate(obj => {
                          ^
  
  TypeError: handle.executionContext is not a function
      at stringifyJSHandle (file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected][email protected]/node_modules/respec/tools/respecDocWriter.js:308:25)
      at Array.map (<anonymous>)
      at file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected][email protected]/node_modules/respec/tools/respecDocWriter.js:320:51
      at file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/third_party/mitt/index.js:1:243
      at Array.map (<anonymous>)
      at Object.emit (file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/third_party/mitt/index.js:1:226)
      at CDPPage.emit (file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js:82:22)
      at #addConsoleMessage (file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:625:14)
      at #onConsoleAPI (file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:572:32)
      at file:///home/runner/work/_actions/w3c/spec-prod/v2/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/third_party/mitt/index.js:1:243

Expected behavior (e.g., it shouldn't crash):

Static HTML is generated

Optional, steps to reproduce:

@nondebug nondebug added the bug label Sep 13, 2023
@sidvishnoi
Copy link
Member

This likely broke with puppeteer update. Will check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants