-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Upgraded YTT to v11 and getting Cannot read properties of undefined (reading '0') #406
Comments
This is coming from Foundry. It is likely that you are using an incorrect version of node, or updated the latest version without a proper new install of the code. |
Thanks, I’ll try a fresh install.Paul Ashcroft On 9 Oct 2023, at 03:44, Jack Holloway ***@***.***> wrote:
This is coming from Foundry. It is likely that you are using an incorrect version of node, or updated the latest version without a proper new install of the code.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Just another datapoint. I ran into this same error. I am running from a docker container using the image |
I've run into this same issue today. I clean installed my server, and made sure I am using Node 18. @MrPrimate do you have any other suggestions on how to debug this one? |
Make sure that your not using the app files from a previous install, you'll need to delete and then extract them a new. Another gotcha is to make sure the node your app is using is definitely v18 and not a system default |
That worked. Thanks! I had previously copied over the old directory, but moving to an entirely clean directory fixed it. ✨ |
@jhutchings1 I am also encountering this exact issue after upgrading to v11. What exactly were the app files you copied over? And where did you put the clean directory? Can you provide some more details on what your fix was? Thank you! |
@sunian delete everything in your current app directory, and then unzip a fresh download of Foundry to that directory. |
@jhutchings1 I'm facing the same problem as the others, but I'm using linux to have the application in cloud. I did a clean install of v11 but used the old world in the new version. |
@tmaestrelli I believe it should work with newer versions of node, but it definitely works with 18. Remember as well, that if your calling foundry as a service or similar that it is also using that version of node and not a system default. Mostly though, this tends to be because the foundry app folder has been copied over an existing one, or the update downloaded inside foundry when a new install was required. |
Describe the bug
Just updated to latest version of VTT. Disabled all macros and uninstalled any reporting errors. enabled DndBeyond Importer and attempted to import character, got error an import failed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Character should import.
Environment:
Additional context
Add any other context about the problem here.
foundry.js:68241 Cannot read properties of undefined (reading '0')
fetch @ foundry.js:68241
logger.js:81 DDB Importer | ERR > Error importing character: Object
log @ logger.js:81
logger.js:83 DDB Importer | ERR > TypeError: Cannot read properties of undefined (reading '0')
at Tokenizer.stateBeforeEntity (/home/FoundryAdmin/foundryvtt/resources/app/node_modules/htmlparser2/lib/Tokenizer.js:584:47)
at Tokenizer.parse (/home/FoundryAdmin/foundryvtt/resources/app/node_modules/htmlparser2/lib/Tokenizer.js:848:26)
at Tokenizer.write (/home/FoundryAdmin/foundryvtt/resources/app/node_modules/htmlparser2/lib/Tokenizer.js:159:14)
at Parser.write (/home/FoundryAdmin/foundryvtt/resources/app/node_modules/htmlparser2/lib/Parser.js:459:28)
at sanitizeHtml (/home/FoundryAdmin/foundryvtt/resources/app/node_modules/sanitize-html/index.js:588:10)
at cleanHTML (file:///home/FoundryAdmin/foundryvtt/resources/app/dist/database/validators.mjs:1:233)
at HTMLField.sanitizeHTMLField [as sanitize] (file:///home/FoundryAdmin/foundryvtt/resources/app/dist/database/sanitization.mjs:1:1235)
at Item._sanitizeFields (file:///home/FoundryAdmin/foundryvtt/resources/app/dist/database/backend/server-document.mjs:1:7729)
at Item._sanitizeFields (file:///home/FoundryAdmin/foundryvtt/resources/app/dist/database/backend/server-document.mjs:1:7956)
at Item._sanitizeFields (file:///home/FoundryAdmin/foundryvtt/resources/app/dist/database/backend/server-document.mjs:1:7956)
The text was updated successfully, but these errors were encountered: