“Class extends value undefined is not a constructor or null” (Node actions + Puppeteer)
Hi everyone! I’m trying to use Puppeteer in a Node action. I have some simple code that works locally but fails when deployed on Convex:
4 Replies
Hi @Nicolapps! I don't know what's causing this error in particular but I would not expect puppeteer to work in a Node.js action because we bundle the code locally (just JavaScript, we don't bundle compiled code) and then deliver it and try to run in in AWS.
We are actively working on getting such modules to work.
This would be great, attempting to use puppeteer myself but Ai controlled.
Hi @Michael Rea, we have expanded the Node.js packages support significantly, check out the docs:
https://docs.convex.dev/functions/bundling#external-packages
Bundling | Convex Developer Hub
Bundling is the process of gathering, optimizing and transpiling the JS/TS