I’m really happy to see Cloudflare add
I’m really happy to see Cloudflare add support for Playwright with Browser Rendering.
I’m attempting to use it on a project, but I’m running in to errors when attempting to deploy.
As soon as I include the “@Cloudflare/playwright” package in my build, deploys fail.
My guess is that there could be something in that package that isn’t supported in the Workers run time?
3 Replies
I'm using the
nodejs_compat
compatibility flag and 2025-03-05
for the compatibility date.
I also have this for the browser binding.
Hi @darren which version are you using? Can you provide a minimal code example that reproduces the error?
Hi Rui, apologies for the late reply. I ended up just using the new rest endpoint which seemed to work ok.
I was using the latest version as of April 14th, but I no longer have to code available to say exactly what version that was.
As far as how to reproduce, I was just seeing that as soon as I imported the
@cloudflare/playwright
package, deploys would fail. Even if I never actually used any of the imports. My app would build ok, but it seemed to fail when uploading.