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

Plugin restore fails under MobileChromeApps `cca` tool

    XMLWordPrintableJSON

    Details

      Description

      When preparing a MobileChromeApps-wrapped project, plugins from the config.xml are found, but restoration fails because the `cca` tool injects additional search paths, which causes plugman/fetch.js to throw an error.
      https://github.com/apache/cordova-lib/blob/6.0.x/cordova-lib/src/plugman/fetch.js#L199 .

      I propose removing the error and simply emit a warning and continue with the cached localPlugin object.

      In this particular case, the `cca` tool adds the same search path twice (once via `opts`, other via `config_json`). While it would be good to also file a bug in the MobileChromeApps project, it's been stated that the project is no longer being actively maintained.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                meatballyang Jeffrey Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: