Problems with basic Puppeteer setup
Hi there!
I've setup a basic Worker project using
npm create cloudflare@latest.
After that, I installed @cloudflare/puppeteer, updates my wrangler.jsonc to include the binding, and set the required compatibility flags.
I followed the documentation (https://developers.cloudflare.com/browser-rendering/platform/puppeteer/) and copied the example code into my own project:
When I test locally using npm run dev, I get the following error:
Running remotely works fine, the issue only happens when testing locally.
It feels like I’m missing something in the setup, but I can’t figure out what. Has anyone run into this before, or know how to resolve it?
Thanks!0 Replies