ardittristan / 5eSheet-resourcesPlus

A module that allows you to add more resources to 5e character sheets
GNU General Public License v3.0
9 stars 5 forks source link

FVTT Version 10 Compatibility - Cannot read properties of undefined #24

Closed CharlesHunter closed 2 years ago

CharlesHunter commented 2 years ago

When running this module in newest version of Foundry VTT (Version 10 Stable, Build 284) with the latest version of DnD5e - Fifth Edition System (v 2.0.2) This exception is thrown on page load and only 3 resources are available regardless of the value entered for Resource Count in the character's Sheet Configuration.

TypeError: Cannot read properties of undefined (reading 'prototype')
[Detected 2 packages: resourcesplus, lib-wrapper]
    at Object.fn (addresources.js:102:82)
    at #call (foundry.js:688:20)
    at Hooks.callAll (foundry.js:645:17)
    at Game.initialize (foundry.js:7615:11)
    at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:511:22)
    at 🎁libWrapperInit (libWrapper-api.js:796:11)
onError @ foundry.js:711
🎁call_wrapped @ libWrapper-wrapper.js:511
🎁Hooks.onError#lib-wrapper @ listeners.js:137
🎁Hooks.onError#0 @ libWrapper-wrapper.js:187
#call @ foundry.js:692
callAll @ foundry.js:645
initialize @ foundry.js:7615
🎁call_wrapped @ libWrapper-wrapper.js:511
🎁libWrapperInit @ libWrapper-api.js:796
await in 🎁libWrapperInit (async)
🎁Game.prototype.initialize#0 @ libWrapper-wrapper.js:187
window.addEventListener.once @ foundry.js:78537