Installing any version of Puppeteer leads to this error in a GitHub Action:
TypeError: script is not a function at PuppeteerManager.invokePuppeteerScriptForUrl (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/collect/puppeteer-manager.js:108:11) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Object.runCommand (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/collect/collect.js:244:7) Error: LHCI 'collect' has encountered a problem. at async run (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/cli.js:103:7)
The reason for this was because of multiple function exports from our puppeteerScript which converted the script method to an object instead. Apologies, this is not a bug and can be closed.
Installing any version of Puppeteer leads to this error in a GitHub Action:![image](https://user-images.githubusercontent.com/42546451/151859279-d3b37bce-42fd-4d98-9eee-f6cc3dab1e69.png)
TypeError: script is not a function at PuppeteerManager.invokePuppeteerScriptForUrl (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/collect/puppeteer-manager.js:108:11) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Object.runCommand (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/collect/collect.js:244:7) Error: LHCI 'collect' has encountered a problem. at async run (/home/runner/work/_actions/treosh/lighthouse-ci-action/v8/node_modules/@lhci/cli/src/cli.js:103:7)