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

Cordova/plugin_list - module.exports are always empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.3.0
    • 3.3.0
    • None
    • Test the app in a desktop browser

    Description

      When i tested the apps in desktop browser (version Cordova 3.0.0) i don't received any error. when i update Cordova i note that the file "cordova_plugins.js" has variable empty ("module.exports" is empty array). Before the update this file contained the list of installated plugins.
      Why is now empty?

      This problem causes the fact that I receive the error "navigator.connection is undefined"

      /////////////////////////////////////

      Old Cordova - after installations a plugin

      cordova.define('cordova/plugin_list', function(require, exports, module) {
      module.exports = [
      [...]

      { "file": "plugins/org.apache.cordova.network-information/www/network.js", "id": "org.apache.cordova.network-information.network", "clobbers": [ "navigator.connection", "navigator.network.connection" ] }

      ,
      [...]
      ]
      });

      /////////////////////////////////////

      Cordova 3.3.0

      cordova.define('cordova/plugin_list', function(require, exports, module)

      { module.exports = []; module.exports.metadata = // TOP OF METADATA {}

      // BOTTOM OF METADATA
      });

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kevinoo Kevin Lucich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: