In ./MyApp class MyApp - inline template:0:0 caused by: FileTransfer is not defined

I’m developing an application with ionic and I’m trying to upload a photo , however I’m getting this weird error :

in ./MyApp class MyApp - inline template:0:0 caused by: FileTransfer is not defined
I’m using Transfer instead of Filetransfer and the weird thing is that when I remove it from the constructor (so my constructor would be like this :

(public camera : Camera ,public navCtrl: NavController, public navParams: NavParams, public http : HTTP , form : FormBuilder)
instead of :

(public tran : Transfer,public camera : Camera ,public navCtrl: NavController, public navParams: NavParams, public http : HTTP , form : FormBuilder)
the error disappear but of course I can’t use it so it’s useless

What does the entire MyApp class look like, including its template?

Have you imported the Transfer plugin in your app.module.ts file?

I tried several things I’m not sure which one worked , but the important thing is that it was solved :slight_smile:
thank you guys