Declare file outside constructor. And you are good to go.
import { File as cordova_file } from ‘@ionic-native/file/ngx’;
private file: typeof cordova_file
constructor(
Hi,
I would like to convert from base64 to File and in the device, I am using **new File() ** ( javascript File API) then it is taking from the file plugin, not from js File API and conversion is going wrong, I tried the above approach like { File as FilePlugin } but it did not work.