When I open a scene I created previously and select a token, I am getting the following errors in the console and then it doesn't allow me to select tokens at all anymore in the scene until I switch to a new scene and back again:
libWrapper-wrapper.js:513 Uncaught TypeError: undefined. Cannot read properties of undefined (reading '_updateConfiguration')
[Detected 2 packages: tokenvisibility, lib-wrapper]
at DetectionModeBasicSight._testLOS (DetectionMode.js:71:11)
at 🎁DetectionMode.prototype._testLOS#0 (libWrapper-wrapper.js:187:52)
at DetectionModeBasicSight._testPoint (DetectionModeBasicSight.js:84:13)
at 🎁DetectionModeBasicSight.prototype._testPoint#0 (libWrapper-wrapper.js:187:52)
at foundry.js:49652:36
at Array.some (<anonymous>)
at DetectionModeBasicSight.testVisibility (foundry.js:49652:18)
at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
at DetectionModeBasicSight.testVisibility (DetectionMode.js:37:10)
at 🎁DetectionMode.prototype.testVisibility#0 (libWrapper-wrapper.js:187:52)
at CanvasVisibility.testVisibility (foundry.js:38552:39)
at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
at CanvasVisibility.testVisibility (CanvasVisibility.js:26:10)
at 🎁CanvasVisibility.prototype.testVisibility#0 (libWrapper-wrapper.js:187:52)
at get isVisible [as isVisible] (foundry.js:54639:38)
at Token5e._refreshVisibility (foundry.js:55052:25)
at CanvasVisibility.restrictVisibility (foundry.js:38476:9)
at CanvasVisibility.refresh (foundry.js:38311:10)
at PerceptionManager.applyRenderFlags (foundry.js:50398:58)
at #applyRenderFlags (foundry.js:27811:44)
at nn.emit (index.js:89:1)
at Dt.update (index.js:89:1)
at Dt._tick (index.js:89:1)
_
ken.js:39 Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'calc')
[Detected 1 package: tokenvisibility]
at Object.controlTokenDebugHook [as fn] (Token.js:39:50)
at #call (foundry.js:730:20)
at Hooks.callAll (foundry.js:687:17)
at Token5e.release (foundry.js:28685:11)
at Token5e.control (foundry.js:28640:29)
at Token5e._onClickLeft (foundry.js:29042:15)
at Token5e._onClickLeft (foundry.js:56254:11)
at MouseInteractionManager.callback (foundry.js:31766:17)
at #handleClickLeft (foundry.js:31954:15)
at #handleMouseDown (foundry.js:31939:38)
at Na.notifyListeners (earcut.js:128:75)
at Na.notifyTarget (earcut.js:128:75)
at Na.propagate (earcut.js:128:75)
at Na.dispatchEvent (earcut.js:128:75)
at Na.mapPointerDown (earcut.js:128:75)
at Na.mapEvent (earcut.js:128:75)
at yn.onPointerDown (earcut.js:128:75)
I made a change to catch if the algorithm is not defined in v0.6.1, which might solve the issue? I could not replicate the error, so I am guessing a bit here.
When I open a scene I created previously and select a token, I am getting the following errors in the console and then it doesn't allow me to select tokens at all anymore in the scene until I switch to a new scene and back again: