xaukael / card-tokens

Drag cards to the canvas
MIT License
0 stars 2 forks source link

Error Occurs When Moving a Card on Canvas #5

Closed brunocalado closed 1 year ago

brunocalado commented 1 year ago

Description When attempting to move a card that is placed on the canvas using the Card Tokens module, an error is generated. The error details can be found in the attached image.

Steps to Reproduce

Environment: Foundry VTT Version: 11 Card Tokens Module Version: 0.4.6 Operating System: Win10 Browser: Chrome SWADE

image

xaukael commented 1 year ago

This does not happen for me on 0.4.7. Update to 0.4.7 to fix the base actor issue. Reset the decks. Try again.

brunocalado commented 1 year ago

This does not happen for me on 0.4.7. Update to 0.4.7 to fix the base actor issue. Reset the decks. Try again.

I reset the deck. I dragged a card and got this warning: image commons.js:2004 Error: You are accessing the TokenDocument#data object which is no longer used. Since V10 the Document class and its contained DataModel are merged into a combined data structure. You should now reference keys which were previously contained within the data object directly. at logCompatibilityWarning (commons.js:1993:19) at TokenDocument._logV10CompatibilityWarning (commons.js:8435:14) at get data [as data] (commons.js:8323:24) at Object.fn (card-tokens.js:63:11) at #call (foundry.js:730:20) at Hooks.call (foundry.js:712:38) at #preCreateDocumentArray (foundry.js:13476:44) at async ClientDatabaseBackend._createDocuments (foundry.js:13362:22)

xaukael commented 1 year ago

good to know, not a pressing or breaking issue, but I will have it fixed in the next version regardless.