magicseth
magicseth2y ago

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
magicseth
magicsethOP2y ago
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";
nipunn
nipunn2y ago
Thanks for the report! I was able to repro
presley
presley2y ago
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!
magicseth
magicsethOP2y ago
thanks!
presley
presley2y ago
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.

Did you find this page helpful?