cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Goffioul (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13801) Fail to restore plugins with relative path
Date Tue, 06 Mar 2018 01:22:00 GMT

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

Michael Goffioul commented on CB-13801:
---------------------------------------

FYI, there's quite a list of similar problems reported (CB-13637, CB-13503, CB-13589, CB-12918)
going back as far as June 2017. Unfortunately, it doesn't look like it'll be fixed anytime
soon. A (dirty) workaround that works for me with cordova@8 is to define the plugin specs
in config.xml (without 'file:' prefix), but not in package.json. 

> Fail to restore plugins with relative path
> ------------------------------------------
>
>                 Key: CB-13801
>                 URL: https://issues.apache.org/jira/browse/CB-13801
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>            Reporter: Michael Goffioul
>            Priority: Major
>
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a local plugin using a relative path: {{cordova plugin add myplugins/testplugin}}
> 4. Delete directories platforms/ and plugins/
> 5. Prepare android: {{cordova prepare android}}
> Cordova will fail to restore the local plugin. The plugin has been added to {{package.json}}
using the spec {{file:myplugins/testplugin}} and the restoration utility is unable to handle
such URL. Note that {{config.xml}} contains the spec {{myplugins/testplugin}} (that is, without
the file: scheme), but the one in {{package.json}} takes precedence.



--
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