-
Notifications
You must be signed in to change notification settings - Fork 87
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
TypeError: Cannot read properties of undefined (reading 'defaults') in auto-playwright #33
Comments
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. |
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!
The text was updated successfully, but these errors were encountered: