Usage of playwright in Convex Node
Hey @ballingt it's me again, we spoke on email and you recommended playwright-aws-lambda for running playwright on "use node" convex actions. However, I can't see to get it to work as it keeps throwing the following error:
Uncaught Error: Executable doesn't exist at /home/sbx_user1051/.cache/ms-playwright/chromium-1091/chrome-linux/chrome
5 Replies
Hm, try "externalPackages": ["*"] https://docs.convex.dev/functions/bundling#specifying-external-packages
Bundling | Convex Developer Hub
Bundling is the process of gathering, optimizing and transpiling the JS/TS
I tried it, now I am stuck at
500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Failed due to network error, retrying in 430.6ms...
This happens for both {
"node": {
"externalPackages": ["playwright-aws-lambda", "playwright-core"]
}
}
and also
{
"node": {
"externalPackages": ["*"]
}
}
@ballingt
Shoot, sorry for the suggestion that didn't work out here! I thought we had developers using this successfully.
@milk enjoyer what time did you last see this error and what's your Convex deployment? You can DM too.
@ballingt I'll DM you
just tested again and still failed
@milk enjoyer Following up on this, although it may have worked for some users (?) Playwright is not supported in either the Convex Node.js or normal actions environment. It seems like Vercel doesn't support this either for similar reasons.