close
Skip to content

@wordpress/e2e-test-utils-playwright gives error "Stripping types is currently unsupported for files under node_modules" #79018

Description

@anomiex

PR #78237 changed the package from exporting transpiled JS to exporting source typescript directly. This presumably works within your monorepo, but in ours it makes our tests fail with errors

Error: Stripping types is currently unsupported for files under node_modules, for "/home/runner/work/jetpack/jetpack/node_modules/.pnpm/@wordpress+e2e-test-utils-playwright@1.48.0_@playwright+test@1.60.0_@types+node@24.12.3/node_modules/@wordpress/e2e-test-utils-playwright/src/index.ts"

Node's documentation on the type stripping feature states:

To discourage package authors from publishing packages written in TypeScript, Node.js refuses to handle TypeScript files inside folders under a node_modules path.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions