These are chat archives for angular/angular-2-ionic-2

2nd
Nov 2016
Bastian Bense
@bastibense
Nov 02 2016 10:52
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
Bastian Bense
@bastibense
Nov 02 2016 11:01
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
Kim Biesbjerg
@biesbjerg
Nov 02 2016 18:27
Anyone else having problems with Visual Studio Code not giving warning when invalid paths are supplied to import statements? Worked fine for my app pre RC?
Still working if I fire up VSC using my old beta 11 code, so I don't think it's directly related to the editor
Alexandre Almeida
@Vacalexis
Nov 02 2016 19:27
@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.