game.version: 13.347
game.system.version: 1.25.7
Recreate actions:
- clear system without any modules
- open compendiums
- open ironsworn assets
- error visible in console
- compedium is opened
Error:
foundry.mjs:23814 Error: Error thrown in hooked function '' for hook 'renderCompendium'. html.find is not a function [Detected 1 package: system:foundry-ironsworn(1.25.7)] at Hooks.onError (foundry.mjs:23813:24) at 🎁Hooks.onError#0 (libWrapper-wrapper.js:188:54) at #call (foundry.mjs:23795:36) at Hooks.callAll (foundry.mjs:23750:17) at #callHooks (foundry.mjs:27919:15) at #dispatchEvent (foundry.mjs:27903:36) at foundry.mjs:27876:26 at async #render (foundry.mjs:27210:5) at async #try (foundry.mjs:7154:17)Caused by: TypeError: html.find is not a function [Detected 1 package: system:foundry-ironsworn(1.25.7)] at Object.fn (drag-and-drop.ts:11:5) at #call (foundry.mjs:23791:20) at Hooks.callAll (foundry.mjs:23750:17) at #callHooks (foundry.mjs:27919:15) at #dispatchEvent (foundry.mjs:27903:36) at foundry.mjs:27876:26 at async #render (foundry.mjs:27210:5) at async #try (foundry.mjs:7154:17)
seams that error is generated insisde system/ironsworn.js:225108 by:
function registerDragAndDropHooks() {
Hooks.on("renderCompendium", (_app, html) => {
html.find(".directory-item").on(
"dragstart",
(ev) => {
const indexEntry = getIndexEntry(ev.target);
CONFIG.IRONSWORN.emitter.emit("dragStart", indexEntry == null ? void 0 : indexEntry.type);
}
).on(
"dragend",
(ev) => {
const indexEntry = getIndexEntry(ev.target);
CONFIG.IRONSWORN.emitter.emit("dragEnd", indexEntry == null ? void 0 : indexEntry.type);
}
);
});
}
error removed after correction to:
function registerDragAndDropHooks() {
Hooks.on("renderCompendium", (_app, html) => {
const $html = html?.querySelector ? $(html) : html;
$html.find(".directory-item").on(
"dragstart",
(ev) => {
const indexEntry = getIndexEntry(ev.currentTarget ?? ev.target);
CONFIG.IRONSWORN.emitter.emit("dragStart", indexEntry == null ? void 0 : indexEntry.type);
}
).on(
"dragend",
(ev) => {
const indexEntry = getIndexEntry(ev.currentTarget ?? ev.target);
CONFIG.IRONSWORN.emitter.emit("dragEnd", indexEntry == null ? void 0 : indexEntry.type);
}
);
});
}
but has to be checked if it not generate other issues.
game.version: 13.347
game.system.version: 1.25.7
Recreate actions:
Error:
foundry.mjs:23814 Error: Error thrown in hooked function '' for hook 'renderCompendium'. html.find is not a function [Detected 1 package: system:foundry-ironsworn(1.25.7)] at Hooks.onError (foundry.mjs:23813:24) at 🎁Hooks.onError#0 (libWrapper-wrapper.js:188:54) at #call (foundry.mjs:23795:36) at Hooks.callAll (foundry.mjs:23750:17) at #callHooks (foundry.mjs:27919:15) at #dispatchEvent (foundry.mjs:27903:36) at foundry.mjs:27876:26 at async #render (foundry.mjs:27210:5) at async #try (foundry.mjs:7154:17)Caused by: TypeError: html.find is not a function [Detected 1 package: system:foundry-ironsworn(1.25.7)] at Object.fn (drag-and-drop.ts:11:5) at #call (foundry.mjs:23791:20) at Hooks.callAll (foundry.mjs:23750:17) at #callHooks (foundry.mjs:27919:15) at #dispatchEvent (foundry.mjs:27903:36) at foundry.mjs:27876:26 at async #render (foundry.mjs:27210:5) at async #try (foundry.mjs:7154:17)seams that error is generated insisde system/ironsworn.js:225108 by:
error removed after correction to:
but has to be checked if it not generate other issues.