Have you tried to reset Item Piles' system settings?
Yes.
Describe the bug
When I double click on a merchant token as a player or as a GM, I have this error:
TypeError: An error occurred while rendering MerchantApp 155. Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at getItemTypesThatCanStack (utilities.js:166:34)
at canItemStack (pile-utilities.js:43:27)
at PileMerchantItem.setupStores (pile-item.js:60:21)
at PileMerchantItem.setupStores (merchant-store.js:328:11)
at PileMerchantItem.setup (pile-item.js:37:10)
at new PileBaseItem (pile-item.js:18:10)
at new PileItem (pile-item.js:54:8)
at new PileMerchantItem (merchant-store.js:325:1)
at item-pile-store.js:184:18
at Array.map (<anonymous>)
at MerchantStore.setupSubscriptions (item-pile-store.js:183:45)
at MerchantStore.setupSubscriptions (merchant-store.js:63:11)
at MerchantStore.make (item-pile-store.js:83:11)
at instance$x (merchant-app-shell.svelte:21:36)
at init (index.mjs:2098:11)
at new Merchant_app_shell (merchant-app-shell.svelte:103:55)
at loadSvelteConfig (loadSvelteConfig.js:90:22)
at MerchantApp._injectHTML (SvelteApplication.js:484:29)
at MerchantApp._render (foundry.js:5131:12)
at async MerchantApp._render (SvelteApplication.js:872:7)
Note: the same issue happens when I click on the NPC in the actor tab. This is a serious problem, as this prevents me to also access the actor "normal" sheet, so I need to either manually modify the actor sheet JSON file or delete and re-create it.
To Reproduce
Steps to reproduce the behavior:
Create a NPC.
Give at least one item to the NPC.
Set this NPC as a merchant using Item Piles.
Drop the NPC on a scene.
Double click on the NPC as a GM, or as a player near the NPC.
Nothing happens, and an error is displayed on the console.
Expected behavior
The merchant screen should open.
Have you tried to reset Item Piles' system settings? Yes.
Describe the bug When I double click on a merchant token as a player or as a GM, I have this error:
Note: the same issue happens when I click on the NPC in the actor tab. This is a serious problem, as this prevents me to also access the actor "normal" sheet, so I need to either manually modify the actor sheet JSON file or delete and re-create it.
To Reproduce Steps to reproduce the behavior:
Expected behavior The merchant screen should open.
Screenshots No screenshots provided.
Setup:
Active modules:
Additional context Here is the actor sheet in an archive file: fvtt-Actor-rufus-le-negociateur.zip