Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ankittrehan2000 opened this issue Feb 12, 2024 · 0 comments · Fixed by #29463
Closed

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

ankittrehan2000 opened this issue Feb 12, 2024 · 0 comments · Fixed by #29463

Comments

@ankittrehan2000
Copy link

ankittrehan2000 commented Feb 12, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants