You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kevin Lucich (JIRA)" <ji...@apache.org> on 2014/01/13 17:21:58 UTC
[jira] [Updated] (CB-5783) Cordova/plugin_list - module.exports are
always empty
[ https://issues.apache.org/jira/browse/CB-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Lucich updated CB-5783:
-----------------------------
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
});
was:
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"
> Cordova/plugin_list - module.exports are always empty
> -----------------------------------------------------
>
> Key: CB-5783
> URL: https://issues.apache.org/jira/browse/CB-5783
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.3.0
> Environment: Test the app in a desktop browser
> Reporter: Kevin Lucich
> Labels: cordova, plugin_list, plugins
>
> 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
> });
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)