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

cordova-plugin-file 4.0.0 error with browserify workflow

    XMLWordPrintableJSON

Details

    Description

      We’ve recently started getting an error with aliasify and the file plugin when building with a --browserify workflow.

      events.js:72
              throw er; // Unhandled 'error' event
                    ^
      SyntaxError: 'return' outside of function (31:4) (while aliasify was processing /projects/plugins/cordova-plugin-file/www/requestFileSystem.js) while parsing file: /project/plugins/cordova-plugin-file/www/requestFileSystem.js
      

      This started when the File plugin v4.0.0 was released. It's caused by a return statement outside of a function: https://github.com/apache/cordova-plugin-file/blob/77c63ef181313eba51652e1026cc730fc79ab9f2/www/requestFileSystem.js#L31

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dpogue Darryl Pogue
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: