Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Message in console "Unable to find a character view"

1791117906
Ulti
Pro
Sheet Author
API Scripter
When modifying a token bar linked to a character attribute, before hopening the character sheet, strange things happen. Looking at the console, I see messages like Error: Unable to find a character view Anyone knows what that means and how to avoid such errors in the sheet workers? PS: if anyone is interested, I'm using the character sheet "Chroniques Oubliées Fantasy 2ème édition by Black Book Editions".
1791209663
Ulti
Pro
Sheet Author
API Scripter
An other error message I don't quite understand: vtt.bundle.b4a642656c7fa6c6c8f8.js:7971 Uncaught TypeError: Cannot read properties of undefined (reading 'find')     at b.$scopedSelector (vtt.bundle.b4a642656c7fa6c6c8f8.js:7971:11588)     at MessagePort.<anonymous> (vtt.bundle.b4a642656c7fa6c6c8f8.js:7434:41193) I still get it after removing all instances of `find` in the sheetworker code. So, does anyone know what could raise that exception?
1791211132
Ulti
Pro
Sheet Author
API Scripter
The error disappears if I remove all calls to `.removeClass` or `.addClass`. But when I log the arguments to these functions, they are just plain constant strings, and the objects are well defined. Also, it works just fine once the sheet has been opened at least once in a given session. Would there be a way to know that a character sheet has been opened, so that we could avoid calling these functions when it is not the case?