Larkinabout / fvtt-token-action-hud-pf2e

Token Action HUD is a repositionable HUD of actions for a selected token.
10 stars 15 forks source link

Token Action Hud won't open for players or NPCs - Console error: TypeError: Cannot read properties of undefined #131

Closed Count-Funkula closed 6 months ago

Count-Funkula commented 6 months ago

When I select any character or NPC the HUD won't open and the console shows an error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'filter') at #w (token-action-hud-pf2e.min.js:1:31256) at async Promise.all (index 12) at async #a (token-action-hud-pf2e.min.js:1:17483) at async ActionHandler.buildSystemActions (token-action-hud-pf2e.min.js:1:17005) at async #h (action-handler.js:208:72) at async Promise.all (index 0) at async ActionHandler.buildHud (action-handler.js:98:31) at async #It (token-action-hud.js:1157:14) at async TokenActionHud.update (token-action-hud.js:1093:20)

I've turned off all modules other than the ones required to run this one.

Silvertower commented 6 months ago

What is your version of Foundry and what is your version of PF2e system? Also, what is your Token Action HUD 2e version?

Silvertower commented 6 months ago

The code in question is sound. So, there is almost certainly a versioning issue with PF2e system.

To use Token Action HUD PF2e version 1.5.10, the following is required: Foundry VTT version 11.315 or later PF2e system version 5.12.7 or later Token Action HUD Core version 1.5.0 or later socketlib version 1.0.13 or later

Count-Funkula commented 6 months ago

Sorry, you were right. I manually updated Foundry and PF2e system version - the update button for PF2e kept it at 5.3.2

Thanks so much for your help