No provider for Transfer!

I already tried everything i could, changing the way I import Transfer, etc, downgrading the ionic-native version in the json package, etc.

But everytime I run the app, it says No provider for Transfer!, anyone with experience with FileTransfer has any idea why I have this error?


Same here :
Any updates?

Still with the same problem, hope we can find an answer.

Make sure you have ionic-native 3.1.0 and have followed the usage instructions.

I already did it. And i have 3.1.0 version of ionic-native

“dependencies”: {
"@angular/common": “2.2.1”,
"@angular/compiler": “2.2.1”,
"@angular/compiler-cli": “2.2.1”,
"@angular/core": “2.2.1”,
"@angular/forms": “2.2.1”,
"@angular/http": “2.2.1”,
"@angular/platform-browser": “2.2.1”,
"@angular/platform-browser-dynamic": “2.2.1”,
"@angular/platform-server": “2.2.1”,
"@ionic-native/core": “^3.1.0”,
"@ionic-native/file": “^3.1.0”,
"@ionic-native/transfer": “^3.1.0”,
"@ionic/storage": “^1.1.7”,
“angularfire2”: “^2.0.0-beta.8”,
“firebase”: “^3.7.0”,
“ionic-angular”: “2.1.0”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.0-beta.12”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “0.6.26”

I followed all the instructions, etc, but can’t solve the problem.

(Note that i removed everything not necessary in pastebin)

This is my service:
This is my app module:
This is my Page App:

I dont know what else can i do.

Any update here :confused: ?

No, sadly no… Transfer is giving me problems :frowning:

Well guys new ionic-native version require to declare the plugin in your providers at @NgModule
here is explanation :

I made it work today, but i didnt change anything, so… I already had my provider and transfer added in the NgModule, so dont know.

Anyway, every single plugin that i install, is giving me problems with providers, in this case, File and Share Social…
Both with the same error, No provider for “insertyourpluginhere”


1 Like

All ionic-native plugins require to be added to @ngModule providers

1 Like

I have all of them in the ngmodule :frowning:

did you import them above ? on top of app.module.ts file ?

eg . import { File } from ‘@ionic-native/file’;

Yes, i have all the imports also.

Also, my package.json

then check your ionic-native versions in package.json

should be 3.1.0 , if not then update it there and run npm install

I edited my last post with an image of my package.json jeje. I have 3.1.0.

well then you should show us your code … make a pastbin with your code including the app.module.ts file

just comment below two things in app.module.ts

// FileUploadOptions,
// FileTransferObject,
after that it work .