No provider for Transfer!


#1

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?

Thanks!


#2

Same here :
Any updates?


#3

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


#4

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


#5

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: http://pastebin.com/SaEY8WxJ
This is my app module: http://pastebin.com/ufamFBL8
This is my Page App: http://pastebin.com/zk0kNDPw

I dont know what else can i do.


#6

Any update here :confused: ?


#7

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


#8

Well guys new ionic-native version require to declare the plugin in your providers at @NgModule
here is explanation : http://ionicframework.com/docs/v2/native/


#9

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”

:frowning:


#10

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


#11

I have all of them in the ngmodule :frowning:


#12

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

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


#13

Yes, i have all the imports also.

Also, my package.json


#14

then check your ionic-native versions in package.json

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


#15

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


#16

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


#17

just comment below two things in app.module.ts

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