Closed SvenSchoene closed 3 years ago
I have a same issue on ionic4-beta version, has someone to solve it ?
Remove the FileReader import:
import { Entry, FileEntry, File, IFile, FileError } from '@ionic-native/file/ngx';
This results in using the actual FileReader class from cordova-plugin-file.
import { File, FileReader } from "@ionic-native/file"; ---> remove FileReader
var lReader = new FileReader(); ---> Call without imports
There has been no recent activity and this issue has been marked inactive.
I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior: I try to initiate a new
FileReader
-object withnew FileReader()
. I get this error:Expected behavior: Initiate a new
FileReader
-object without issue.Steps to reproduce: Here's some sample code:
Other information: I am running this on the Android Emulator, API 27, both with and without live-reload.
It might also be useful to know that
window.FileReader
returns the correct object from here: https://github.com/apache/cordova-plugin-file/blob/master/www/FileReader.js Which is weird and I don't understand why exactly that is. But it at least shows that the file is correctly compiled/bundled into the build.Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):