Ворклог по задаче "Добавить инструмент проверки страниц по списку и подготовка страниц для переобхода"
17 июн. 2026 г., 02:17:16
Обновил пакеты, полетела ошибка
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
Проблему не сразу получилось локализовать. Оказывается, обновился axe-core, который входит в состав @axe-core/playwright, хотя сам @axe-core/playwright остался той же версии, и этот axe-core ожидал на вход объект Page с новыми полями, а объект этот создается другой зависимостью - playwright, которая в свою очередь устанавливается вместе с @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
Вот @playwright/test и надо было обновить и это решило проблему.