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]: Rollup failed to resolve import "/playwright/index.ts" from "/myrepo/playwright/index.html" #30689
Comments
I'm not able to repro, but had to do a few additional steps:
Could you execute the following?
For me it gives this: ➜ ctreactrepro npm ls vite
ctreactrepro@1.0.0 /Users/maxschmitt/Developer/tmp/ctreactrepro
└─┬ @playwright/experimental-ct-react@1.44.0
├─┬ @playwright/experimental-ct-core@1.44.0
│ └── vite@5.2.11
└─┬ @vitejs/plugin-react@4.2.1
└── vite@5.2.11 deduped
➜ ctreactrepro npm ls playwright-core
ctreactrepro@1.0.0 /Users/maxschmitt/Developer/tmp/ctreactrepro
└─┬ @playwright/experimental-ct-react@1.44.0
└─┬ @playwright/experimental-ct-core@1.44.0
├── playwright-core@1.44.0
└─┬ playwright@1.44.0
└── playwright-core@1.44.0 deduped
➜ ctreactrepro |
I get the following output:
So it looks similar to yours. |
@mxschmitt And just to verify, if I downgrade the playwright version to |
Would it be possible to share a small project with us which reproduces the error? Which we can clone and run locally? |
@mxschmitt Now something strange happend. In my repro project, where I managed to get the error it suddenly started working again. When I |
Maybe a caching issue? Could you try to delete the playwright/.cache folder? |
It wasn't caching since it ran in a github actions workflow, and those are not using cache. |
Version
1.43.1
Steps to reproduce
npm init playwright@latest -- --ct
src/app.tsx
file:src/app.spec.tsx
:npm run test-ct
Expected behavior
Described in #30565
Actual behavior
Described in #30565
Additional context
No response
Environment
Described in https://github.com/microsoft/playwright/issues/30565
The text was updated successfully, but these errors were encountered: