Worklog for task "Add a tool to check pages from a list and prepare pages for re-crawling"

17 июн. 2026 г., 02:17:16

Updated packages, got an error

server/schema/types/Analyra/resolvers/analyzeWebPageAccesibility/index.ts:199:40 - error TS2739: Type 'Page' is missing the following properties from type 'Page': localStorage, sessionStorage

199 const axe = await new AxeBuilder({ page }).analyze()
~~~~

node_modules/@axe-core/playwright/dist/index.d.ts:5:5
5 page: Page;
~~~~
The expected type comes from property 'page' which is declared here on type 'AxePlaywrightParams'


Found 1 error in server/schema/types/Analyra/resolvers/analyzeWebPageAccesibility/index.ts:199

It wasn't immediately possible to isolate the issue. It turns out that axe-core, which is part of @axe-core/playwright, got updated even though @axe-core/playwright itself stayed at the same version, and this axe-core expected a Page object with new fields as input, while this object is created by another dependency β€” playwright, which in turn is installed alongside @playwright/test.

npm list playwright
site-boilerplate@1.12.0 /disks/wd-1000/www/analyra.ru/agent
β”œβ”€β”¬ @playwright/test@1.61.0
β”‚ └── playwright@1.61.0
└─┬ n8n@2.1.5
  └─┬ @n8n/n8n-nodes-langchain@2.1.4
    └─┬ @langchain/community@1.0.5
      └── playwright@1.61.0 deduped

So @playwright/test needed to be updated, and that solved the problem.