cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Braden Shepherdson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5783) Cordova/plugin_list - module.exports are always empty
Date Thu, 16 Jan 2014 15:58:19 GMT

    [ https://issues.apache.org/jira/browse/CB-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873525#comment-13873525
] 

Braden Shepherdson commented on CB-5783:
----------------------------------------

All of which assets? Top-level www/? plugins/? Everything in platforms/android? In platforms/android/assets/www/?

> 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
>    Affects Versions: 3.3.0
>         Environment: Test the app in a desktop browser
>            Reporter: Kevin Lucich
>              Labels: cordova, plugin_list, plugins
>             Fix For: 3.3.0
>
>
> 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)

Mime
View raw message