Open galaczi opened 4 months ago
I think this might be due to the completeTask file not working properly. I have fixed it in my latest PR. Can you check if it fixes it ?
I've encountered this issue as well this morning. Using version 1.16.0.
Got the same issue as well. Using version: 1.16.0
yes, i am too, 1.16.0
Yeah you are right sanitizeHtml.
Just raised a PR https://github.com/lucgagan/auto-playwright/pull/40 with explanation lets wait for @lucgagan to approve
Could we get a release that includes this change? I tested it by using the repository directly, and I can confirm that it resolved the issue on my end.
I am encountering a TypeError when using the auto function from the auto-playwright library in conjunction with crawlee. The error message indicates that the
defaults
property is undefined in the sanitize-html library, which is used internally by auto-playwright.Steps to Reproduce:
Install the latest versions of auto-playwright and sanitize-html. Set up a route handler using crawlee (routes.ts) and auto-playwright as shown below:
Run the crawler.
The following error is thrown:
Additional Information:
The issue seems related to the sanitize-html library and its type definitions. I have verified that I am using the latest versions of both auto-playwright and sanitize-html. The problem persists despite the issue being marked as resolved in version 1.12.2 of auto-playwright.
Environment:
Node.js version: v20.13.1 auto-playwright version: 1.15.0 sanitize-html version: 2.13.0 Operating System: Ubuntu
References:
GitHub Issue #7 - Similar issue reported and marked as resolved.
Possible Workaround:
Manually adjust the sanitizeHtml function in the auto-playwright library to ensure it correctly references sanitize-html:
Thank you!