Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12596

cannot use cordova-plugin-file-transfer due to types issue

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 6.4.0, 6.5.0
    • None
    • Ionic

    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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jmilloy Jeffrey Milloy
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment