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

Battery Status plugin cannot be built for windows using browserify

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Repro:

      cordova create foo
      cd foo
      cordova platform add windows
      cordova plugin add https://github.com/apache/cordova-plugin-battery-status
      cordova build --browserify
      

      The error:

      Error: 'return' outside of function (60:4) (while aliasify was processing C:\Cordova\foo\plugins\cordova-plugin-battery-status\src\windows\BatteryProxy.js) while parsing file: C:\Cordova\foo\plugins\cordova-plugin-battery-status\src\windows\BatteryProxy.js
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alsorokin Alexander Sorokin
                Reporter:
                alsorokin Alexander Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: