cbhscarter
cbhscarter17h ago

Playwright error requires Node.js v18.19 or higher

I'm attempting to run Playwright, within the context of Deno, but for some reason I receive this playwright error that Node.JS is required to load ESM modules. I am using Deno 2.5.3, and running playwright.config.mts file from the root level with deno run playwright test I do have Node 20, 22, and 24 installed, and I tested with Node 20 and 24 and received the same error.
1 Reply
cbhscarter
cbhscarterOP14h ago
Apparently this works now. I'm not entirely sure, but I moved the playwright.config.mts to the same location as a package.json that listed the files as type:module, as well as addin gin the PW_DISABLE_TS_ESM=true env for the CLI call.

Did you find this page helpful?