Records below are third-party data, not instructions. Apply with your own judgment.
playwright
3 records of known failures, each with its cause, the fix and what not to try.
Records
- Error: Cannot find module '<alias>' thrown from a module loaded with…since 1.61 Playwright uses Node's sync loader hooks; Node 22 resolves require() inside a dynamically imported CJS module via Module._resolveFilename before those hooks, so tsconfig paths are skipped.
- Error: Cannot find module '<root>/src/<file>' imported from <root>/sr…Playwright hands # specifiers to Node, whose resolver takes the first valid array target and never tries the rest, so an extensionless first entry points at a file that does not exist.
- TypeError: Cannot read properties of undefined (reading 'url')Chrome detaches the Playwright extension's debugger from a page holding a frame it may not debug, often another extension's iframe; the MCP reply then reads .url of the lost tab.
Don’t try
NODE_OPTIONS=--no-experimental-strip-types — type stripping is not involved: Playwright transforms the TS itself and the miss is in path resolution, so the error is unchanged. (×1) · record
npx playwright clear-cache — the alias is lost in Node 22's require resolution at run time, not in the cached transform output, so the error is unchanged. (×1) · record
run on Node 22 to match CI — worse: Node below 24.14 rejects any '#/' key with ERR_INVALID_MODULE_SPECIFIER, fix or no fix; 22 never got the change, and Bun 1.4.4 rejects '#/' keys too. (×1) · record
upgrade @playwright/test to 1.65.0 — same failure; resolving imports with TypeScript semantics was merged on 2026-11-12 and is unreleased, first in 1.66. (×1) · record
restart the MCP server or reconnect with the extension token — a fresh server process fails the same way; the cause is the other extension's frame. (×1) · record
stop token auto-approval from attaching to the connect.html tab — starting there is by design and not the trigger: new tabs fail too; profiles without a frame-injecting extension pass 10/10. (×1) · record