MrVauxs / PF2e-Target-Damage

Discord: @vauxs
Apache License 2.0
7 stars 7 forks source link

Constant errors in console #26

Closed Janonas closed 1 year ago

Janonas commented 1 year ago

The error: "targets is undefined" appears incredibvly often in the sconsole. Also the image for double damadge (the cross) doesn appear the the generic damage buttons (the one with the specific targets appear regularly)

MrVauxs commented 1 year ago

Can you show a screenshot of the issues you are facing?

Ironxxx commented 1 year ago

I get the following errors currently under target-damage.js, I get the first error every time the modules is used (applies damage):

target-damage.js:421 Uncaught TypeError: Cannot read properties of undefined (reading 'options')
[Detected 1 package: pf2e-target-damage]
    at target-damage.js:421:23
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
[Detected 1 package: pf2e-target-damage]
    at target-damage.js:419:12

I get the following under foundry.js

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'startsWith')
[Detected 1 package: pf2e-target-damage]
    at _parseUuid (foundry.js:4176:13)
    at fromUuidSync (foundry.js:4140:49)
    at get token [as token] (target-damage.js:10:10)
    at target-damage.js:273:29
Janonas commented 1 year ago

problem Here are the errors which happen ecen when it is the only module, also the problem with the X symbol happens when you use the chat portrait module with the target damage module

MrVauxs commented 1 year ago

Make sure you are up to date as this is likely fixed now in 2.1.1.

Janonas commented 1 year ago

Ah i see that you just did an update which fixed it, Grat work! ill put the corss thing in the new issue