-
Notifications
You must be signed in to change notification settings - Fork 68
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
Page type incompatibility when updating @playwright/test #1087
Comments
Hey @ritchieanesco, What version were you on and what version of @playwright/test caused the type break? Thanks! |
Type 'import("C:/Users/....../Playwright/node_modules/.pnpm/playwright-core@1.46.0/node_modules/playwright-core/types/types").Page' is not assignable to type 'import("C:/Users/....../Playwright/node_modules/.pnpm/playwright-core@1.45.3/node_modules/playwright-core/types/types").Page'.ts(2322)
index.d.ts(5, 5): The expected type comes from property 'page' which is declared here on type 'AxePlaywrightParams' Generally get this error everytime I upgrade playwright/test to a new version |
Same here! |
I'm also encountering this issue.
|
bumping this. Encountered issue |
bumping one more time. @Zidious |
@Zidious We got this error going from |
Hello folks, Apologies for the delays. I am not able to reproduce this error, I am using: @axe-core/playwright version ^4.10.1 import { AxeBuilder } from "@axe-core/playwright";
import { chromium } from "@playwright/test";
(async () => {
const browser = await chromium.launch({ headless: true });
const context = await browser.newContext();
const page = await context.newPage();
await page.goto("https://dequeuniversity.com/demo/mars/");
try {
const results = await new AxeBuilder({ page }).analyze();
console.log(results);
} catch (e) {
// do something with the error
}
await browser.close();
})(); Are you able to provide an example where this is reproducible and I'll be able to take a look? |
Thanks for that @Zidious. That example does work for me in an a fresh project. I've dug deeper into my troubled project and found we had an additional playwright dependency that was causing the issue. The dependency in question was Anyone else experiencing this issue have a look for other playwright dependencies. |
Product
playwright
Product Version
4.9.1
Latest Version
Issue Description
Expectation
No type errors when updating @playwright/tests package
Actual
Page
type error occurs when runningtsc --noEmit
after updating @playwright/tests packageHow to Reproduce
Page
type from @playwright.tests package in your tests.tsc --noEmit
The text was updated successfully, but these errors were encountered: