DFreds / dfreds-convenient-effects

A FoundryVTT module that adds easy to use toggleable active effects for any system.
MIT License
44 stars 37 forks source link

"Cannot read properties of undefined (reading length')" error on load #329

Closed thinkedem closed 1 week ago

thinkedem commented 3 months ago

Describe the Bug

Logging in to VTT I get a "Cannot read properties of undefined (reading length')" error message.

Context

image

Console error:

caught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'length')
[No packages detected]
    at Preprocessor.advance (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/node_modules/parse5/dist/tokenizer/preprocessor.js:138:35)
    at Tokenizer._consume (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/node_modules/parse5/dist/tokenizer/index.js:270:34)
    at Tokenizer._runParsingLoop (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/node_modules/parse5/dist/tokenizer/index.js:221:29)
    at Tokenizer.write (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/node_modules/parse5/dist/tokenizer/index.js:248:14)
    at parseFragment (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/node_modules/parse5/dist/index.js:42:22)
    at cleanHTML (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/dist/database/validators.mjs:1:209)
    at HTMLField.sanitizeHTMLField [as sanitize] (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/dist/database/sanitization.mjs:1:1235)
    at Item._sanitizeFields (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/dist/database/backend/server-document.mjs:1:7729)
    at Item._sanitizeFields (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/dist/database/backend/server-document.mjs:1:7956)
    at Item.sanitizeUserInput (/Applications/Foundry%20Virtual%20Tabletop.app/Contents/Resources/app/dist/database/backend/server-document.mjs:1:7436)

To Reproduce

Steps to reproduce the behavior:

  1. Install and enable DFred's Convenient Effects
  2. Reload game or logout and login to game again

Expected Behavior

No error message.

DFreds commented 1 week ago

Not sure I've ever seen this, or that it's related to this module. In any case, try again in v7 of CE and make a new issue if it persists