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

Battery Status plugin cannot be built for windows using browserify

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: