Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: Cannot read property 'filter' of undefined #2

Open
cparello opened this issue Jan 13, 2023 · 1 comment
Open

TypeError: Cannot read property 'filter' of undefined #2

cparello opened this issue Jan 13, 2023 · 1 comment

Comments

@cparello
Copy link

cparello commented Jan 13, 2023

const doc = IDOMParser.parse(html, {
ignoreTags: ['script', 'style', 'head'],
onlyBody: true,
});

this is the output i get. when i run this on some html. It works fine on other html

LOG Found onlyBody executing <(body)(.?)>(.|
)
?</(body)>
LOG Found ignoreTags executing (<(script|style|head)(.?)>(.|
)
?</(script|style|head)>)|(<(script|style|head)(.*?)/>)
WARN Possible Unhandled Promise Rejection (id: 2):
TypeError: Cannot read property 'filter' of undefined

@AlenToma
Copy link
Owner

AlenToma commented Jan 13, 2023

This cannot be a library issue as there dose not containes any async or Promise operations.

The error must be somewhere in your code.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants