I have installed filetransfer plugin as it mention here
Here is the code in the app.module.ts:
import { FileTransfer } from '@ionic-native/file-transfer';
providers: [
...
FileTransfer,
...
]
Here is the error
Type 'FileTransferOriginal' is not assignable to type 'Provider'. Type 'FileTransferOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactoryts(2322) (alias) const FileTransfer: FileTransferOriginal import FileTransfer
You installed the latest @ionic-native/file-transfer
(v5+).
Then you should import FileTransfer
from @ionic-native/file-transfer/ngx
import { FileTransfer } from '@ionic-native/file-transfer/ngx';
Or else install @ionic-native/file-transfer
with v4+, then you can import FileTransfer
from @ionic-native/file-transfer
import { FileTransfer } from '@ionic-native/file-transfer';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With