arcanistzed / pdf-sheet

A system agnostic tool to export your Foundry character sheet to a PDF!
https://arcanist.me
MIT License
14 stars 58 forks source link

[Bug]: After I updated fvtt, PF2e system got error "Invalid mapping JavaScript Object". #112

Open kagangtuya-star opened 1 year ago

kagangtuya-star commented 1 year ago

Expected Behavior

When uploading the PF2e character sheet PDF, a window appears that shows all the fillable fields on the PDF.

Current Behavior

foundry.js:68241  PDF Sheet | Invalid mapping JavaScript Object. See the <a href="https://github.com/arcanistzed/pdf-sheet/blob/main/README.md">README</a> for more info.
fetch @ foundry.js:68241
notify @ foundry.js:68138
error @ foundry.js:68175
createForm @ pdfsheet.js:374
onFileUpload @ pdfsheet.js:508
reader.onload @ pdfsheet.js:296
load(异步)
(anonymous) @ pdfsheet.js:296
VM254710:3  Uncaught TypeError: Cannot read properties of undefined (reading 'unarmored')
    at eval (eval at createForm (pdfsheet.js:379:4), <anonymous>:3:2899)
    at Pdfconfig.createForm (pdfsheet.js:379:77)
    at Pdfconfig.onFileUpload (pdfsheet.js:508:8)
    at reader.onload (pdfsheet.js:296:31)

Foundry Virtual Tabletop v11.313

System: Pathfinder 2nd Edition5.7.2

After I updated fvtt, PF2e system got error

Steps to Reproduce

image Do the above options and import the correct PDF...

Context

image

Version

0.24.4

Foundry VTT Version

11.313

Operating System

Windows

Browser / App

Chrome

Game System

PF2E v5.7.2

Modules Disabled

Warbier89 commented 1 year ago

I have sadly exactly the same problem with the 11 Stable Build 315 version of FoundryVTT in combination with the DnD5e - Fifth Edition System 2.3.1: image

davelamorte commented 11 months ago

Same for me with 5e 2.4.0 and FVTT 11.315 I simply cannot export anything anymore!

davelamorte commented 11 months ago

Upon further testing, it's the field "languages". If it has anything more than one language, the issue appears.

ksignorini commented 10 months ago

Oh no! Will this be fixed?

ksignorini commented 9 months ago

Upon further testing, it's the field "languages". If it has anything more than one language, the issue appears.

Removing the mapping for Languages (commenting out the section) doesn't seem to fix it though. Ideas?