Open socketopp opened 2 years ago
I'm getting the same error too through the React wrapper.
Uncaught TypeError: base64Cache[item.id] is undefined
plugin filepond-plugin-file-encode.js:74
onupdatefiles ImageUploadQuestion.js:65
onupdatefiles ImageUploadQuestion.js:65
onupdatefiles react-filepond.js:84
exposeEvent filepond.js:11734
routeActionsToEvents filepond.js:11752
setTimeout handler*./node_modules/filepond/dist/filepond.js/</createApp/routeActionsToEvents/</< filepond.js:11751
routeActionsToEvents filepond.js:11746
routeActionsToEvents filepond.js:11744
_write filepond.js:11580
js filepond.js:12579
js filepond.js:12578
tick filepond.js:1408
tick filepond.js:1407
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
requestTick filepond.js:1370
tick filepond.js:1386
[filepond-plugin-file-encode.js:74](webpack:///node_modules/filepond-plugin-file-encode/dist/filepond-plugin-file-encode.js)
This is also happening with the vue wrapper, gettting TypeError: Cannot read properties of undefined (reading 'data')
because base64Cache[item.id] is undefined.
Is there a fix for this or a workaround? I'm unable to use this plugin
Should be fixed in 2.1.12
I thought I would notify the maintainers of this error. Discovered in "filepond-plugin-file-encode": "^2.1.10".
Code essentially:
Here is the error log.
I get around this by wrapping try catch around getFileEncodeDataURL.