cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Berns (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-13942) Plugin Fails with Dependency Failure
Date Fri, 02 Mar 2018 00:16:00 GMT
Greg Berns created CB-13942:
-------------------------------

             Summary: Plugin Fails with Dependency Failure
                 Key: CB-13942
                 URL: https://issues.apache.org/jira/browse/CB-13942
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-lib
            Reporter: Greg Berns


I'm creating a new plugin that has a dependency on `cordova-plugin-file` and when I uninstall
then re-install the plugin with plugman an error occurs. Looking at the code its pretty obvious
why its failing. The `else` doesn't handle all cases, so `P` isn't set.
https://github.com/apache/cordova-lib/blob/master/src/plugman/fetch.js#L144

`plugman install --platform android --project platforms/android --plugin "/Users/gb/repos/cordova-plugin-cookie-persistence"
--link -d`

```
Requesting plugin "cordova-plugin-file@^6.0.1".
Plugin dependency "cordova-plugin-file" not fetched, retrieving then installing.
Failed to install 'cordova-plugin-cookie-persistence': TypeError: Cannot read property 'fail'
of undefined
    at /usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/fetch.js:168:18
    at _fulfilled (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/plugman/node_modules/q/q.js:509:49
    at flush (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
Cannot read property 'fail' of undefined TypeError: Cannot read property 'fail' of undefined
    at /usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/fetch.js:168:18
    at _fulfilled (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/plugman/node_modules/q/q.js:509:49
    at flush (/usr/local/lib/node_modules/plugman/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message