Jeffrey Milloy created CB-12596: ----------------------------------- Summary: cannot use cordova-plugin-file-transfer due to types Key: CB-12596 URL: https://issues.apache.org/jira/browse/CB-12596 Project: Apache Cordova Issue Type: Bug Components: Plugin File Transfer Affects Versions: 6.4.0, 6.5.0 Environment: {noformat} Installed platforms: android 6.1.2 {noformat}
{noformat} 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" {noformat} Reporter: Jeffrey Milloy I am using Ionic 2 (2.2.1). Building the app with {{ionic-app-scripts build}} fails during transpile with this error: {noformat} 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. {noformat} 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}} {code} /// <reference types="cordova-plugin-file" /> {code} My typescript version is {typescript@2.0.10} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org