I'm having a problem with the latest ionic (updated app scripts this morning to use webpack). I added the file-transfer plugin but whatever I do, I get FileTransfer is not defined(apparently the JS from cordova-plugin-file-transfer is not included for some reason?)
Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0-rc.1 Ionic CLI Version: 2.1.1 Ionic App Lib Version: 2.1.1 Ionic App Scripts Version: 0.0.39 ios-deploy version: 1.9.0 ios-sim version: 5.0.9 OS: Mac OS X Sierra Node Version: v6.6.0 Xcode version: Xcode 8.0 Build version 8A218a
i read somewhere that FileTransfer is not available until deviceready is fired, but when using ionic native's Transfer class, this shouldnt be an issue right? The error apparently happens when Transfer internally tries to create a new FileTransfer() instance, which is at that time undefined
@robgaleano I had that very same issue and the problem was I was importing 'file.component.ts' instead of just 'file.component'. Notice the warning was saying unexpected character '@' at the 'file.comoonent.ts' although the mistake was somewhere else where I was importing the file component. Check for possible extra '.ts's in your imports.