I m playing with actions trying to use
I'm playing with actions, trying to use playwright, and am running in to some issues
5 Replies
400 Bad Request: InvalidModules: Loading the pushed modules encountered the following
error:
Dynamic require of "module" is not supported.
at <anonymous> (../../node_modules/playwright-core/lib/utilsBundleImpl.js:34:62668)
import * as playwright from "playwright-aws-lambda";
Thanks for the report! I was able to repro
Yeah, this looks like a bundler issue, the require should get inlined or replaced with import but it doesn't. I will play with the bundler to see why it is missing this require. Thanks for the report!
thanks!
This should now be fixed and you should be able to import playwright. We added couple of missing builtin modules. I haven't actually used the library but imports fine. Let us know if you see any further issues with this or other npm packages.