Skip to content
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

Cannot read properties of undefined (reading 'type') #2007

Open
benoit74 opened this issue Mar 12, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'type') #2007

benoit74 opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@benoit74
Copy link

See openzim/zim-requests#881

Error:

[error] [2024-03-11T17:32:55.260Z] Failed to run mwoffliner after [1892s]: {
	"stack": "TypeError: Cannot read properties of undefined (reading 'type')\n    at TokenStream.LA (/tmp/mwoffliner/node_modules/domino/lib/cssparser.js:810:30)\n    at TokenStream.advance (/tmp/mwoffliner/node_modules/domino/lib/cssparser.js:683:20)\n    at Parser._readDeclarations (/tmp/mwoffliner/node_modules/domino/lib/cssparser.js:3402:42)\n    at Parser.parseStyleAttribute (/tmp/mwoffliner/node_modules/domino/lib/cssparser.js:3581:22)\n    at parseStyles (/tmp/mwoffliner/node_modules/domino/lib/CSSStyleDeclaration.js:23:10)\n    at CSSStyleDeclaration.get (/tmp/mwoffliner/node_modules/domino/lib/CSSStyleDeclaration.js:38:28)\n    at CSSStyleDeclaration.value (/tmp/mwoffliner/node_modules/domino/lib/CSSStyleDeclaration.js:178:23)\n    at file:///tmp/mwoffliner/lib/util/saveArticles.js:768:24\n    at Array.map (<anonymous>)\n    at applyOtherTreatments (file:///tmp/mwoffliner/lib/util/saveArticles.js:765:39)",
	"message": "Cannot read properties of undefined (reading 'type')"
}
[error] [2024-03-11T17:32:55.261Z] 

**********

Cannot read properties of undefined (reading 'type')

**********

Might be related to #1998

@benoit74 benoit74 added the bug label Mar 12, 2024
@kelson42 kelson42 added this to the 1.14.0 milestone May 7, 2024
@kelson42 kelson42 self-assigned this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants