You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this._realReader.readAsArrayBuffer is not a function.
(In 'this._realReader.readAsArrayBuffer(file)',
'this._realReader.readAsArrayBuffer' is undefined)
uses the false condition and assigns _realReader to {} which obviously has no methods and would explain the "readAsArrayBuffer is not a function ... readAsArrayBuffer is undefined"
Unfortunately I cannot reproduce the issue in my local environment. It is on a user device.
It is obvious modulemapper.getOriginalSymbol(window, 'FileReader');
returns a falsy value.
It can be due to the modulemapper cannot find FileReader in the window object.
I wonder if we can have a fallback strategy for this.
Bug Report
Problem
I got this error when trying to write a binary string into file.
The error is thrown at FileReader.js, line 302.
Here is how I call the FileWriter in my code:
Environment, Platform, Device
iOS 17.6 and iOS 18.0
iPhone 13 Plus
Version information
cordova-plugin-file version 8.1.0
cordova-ios version 7.1.0
The text was updated successfully, but these errors were encountered: