Skip to content

[Bug]: component.d.ts file has incorrect import causing type errors #29461

@ankittrehan2000

Description

@ankittrehan2000

Version

1.41.2

Steps to reproduce

Try to run tsc with a project importing @playwright/experimental-ct-react

image

Expected behavior

Expected to see no type errors

Actual behavior

The following error:

node_modules/@playwright/experimental-ct-core/types/component.d.ts(17,37): error TS2307: Cannot find module '../src/injected/importRegistry' or its corresponding type declarations.

Additional context

I went back to a couple other earlier versions (1.41.1 & 1.41.0) and those had the same behavior for component testing

Environment

System:
    OS: Linux 6.5 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 18.67 GB / 31.09 GB
    Container: Yes
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
  Languages:
    Bash: 5.2.15 - /usr/bin/bash
  npmPackages:
    @playwright/test: ^1.41.2 => 1.41.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions