Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
6.4.0, 6.5.0
-
None
-
Installed platforms: android 6.1.2
cordova-plugin-app-event 1.2.0 "Application Events" cordova-plugin-app-version 0.1.9 "AppVersion" cordova-plugin-buildinfo 1.1.0 "BuildInfo" cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-console 1.0.5 "Console" cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine" cordova-plugin-device 1.1.4 "Device" cordova-plugin-file 4.3.2 "File" cordova-plugin-file-opener2 2.0.8 "File Opener2" cordova-plugin-file-transfer 1.6.2 "File Transfer" cordova-plugin-screen-orientation 1.4.2 "Screen Orientation" cordova-plugin-splashscreen 4.0.1 "Splashscreen" cordova-plugin-whitelist 1.3.1 "Whitelist" de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification" ionic-plugin-keyboard 2.2.1 "Keyboard"
Installed platforms: android 6.1.2 cordova-plugin-app-event 1.2.0 "Application Events" cordova-plugin-app-version 0.1.9 "AppVersion" cordova-plugin-buildinfo 1.1.0 "BuildInfo" cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-console 1.0.5 "Console" cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine" cordova-plugin-device 1.1.4 "Device" cordova-plugin-file 4.3.2 "File" cordova-plugin-file-opener2 2.0.8 "File Opener2" cordova-plugin-file-transfer 1.6.2 "File Transfer" cordova-plugin-screen-orientation 1.4.2 "Screen Orientation" cordova-plugin-splashscreen 4.0.1 "Splashscreen" cordova-plugin-whitelist 1.3.1 "Whitelist" de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification" ionic-plugin-keyboard 2.2.1 "Keyboard"
Description
I am using Ionic 2 (2.2.1). Building the app with ionic-app-scripts build fails during transpile with this error:
typescript: plugins/cordova-plugin-file-transfer/types/index.d.ts, line: Cannot find type definition file for 'cordova-plugin-file': L8: * @param server URL of the server to receive the file, as encoded by L9: * @param successCallback A callback that is passed a FileUploadResult L10: * @param errorCallback A callback that executes if an error occurs retrieving the FileUploadResult.
So the file transfer plugin is completely unusable. The build transpiles without errors if I simply deleted line 9 of cordova-plugin-file-transfer/types/index.d.ts
/// <reference types="cordova-plugin-file" />
My typescript version is typescript@2.0.10