This morning, the problem is no longer happening. So whatever happened got cleaned up by itself.
This morning, the problem is no longer happening. So whatever happened got cleaned up by itself.
A browser instance gets killed if it does not get any command for 60 seconds, freeing one instance.npm install with node 18 and it fails with "Cannot use import statement outside a module", even though, according to the GitHub Actions workflows, that is supposed to work fine..mts but that only moves the problem somwhere else.
"type": "module" to your package.json?extractData method is trying to use it?console.log(e.stack) after the "page on response error"import { Buffer } from 'buffer' would just worknode:buffer, have to specifically use it, ex import { Buffer } from 'node:buffer'.npm install. I checked that I had a compatible version of node set, but it still didn't work.Could not start browser instance. Error: TypeError: Cannot read properties of undefined (reading 'fetch')wrangler dev --remoteA browser instance gets killed if it does not get any command for 60 seconds, freeing one instance.npm installnpm install.mts"type": "module"extractDataconsole.log(e.stack)import { Buffer } from 'buffer'node:bufferimport { Buffer } from 'node:buffer'Could not start browser instance. Error: TypeError: Cannot read properties of undefined (reading 'fetch')wrangler dev --remote async alarm() {
this.keptAliveInSeconds += 10;
// Extend browser DO life
if (this.keptAliveInSeconds < KEEP_BROWSER_ALIVE_IN_SECONDS) {