You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get "Error: Cordova does not support subdirectories" when a plugin is installed.
Discovered saved plugin "project". Adding it to the project
Failed to restore plugin "project" from config.xml. You might need to try adding it again. Error: Cordova does not support subdirectories
Problem
The plugin is in package.json, according to correct syntax:
I get the subfolder error because cordova is confused by the ":".
The comment in src/plugman/fetch.js::57, seems to hit the nail on the head
// If the hash exists, it has the form from npm: http://foo.com/bar#git-ref[:subdir]
So the ":" implies that a subfolder should be used, but in this case it is indicating to npm to use semver to resolve.
What is expected to happen?
I was expecting cordova to understand semver
Funny detail
In plugins it is possible to use semver. That is, the plugin.xml depends on a module from npm that has a similar url with a ":", but in that context it works just fine.
Only visible difference is that one file is plugin.xml while the other is config.xml.
Information
Command or Code
NA
Environment, Platform, Device
NA
Version information
Cordova 9.0.0
Checklist
I searched for existing GitHub issues
I updated all Cordova tooling to most recent version
I included all the necessary information above
The text was updated successfully, but these errors were encountered:
AFAICT, the check that is removed here was part of our previous plugin
fetching mechanism and was not removed when migrating to cordova-fetch.
Fixesapache#795
AFAICT, the check that is removed here was part of our previous plugin
fetching mechanism and was not removed when migrating to cordova-fetch.
Fixes#795
Bug Report
I get "Error: Cordova does not support subdirectories" when a plugin is installed.
Problem
The plugin is in package.json, according to correct syntax:
And in config.xml:
What does actually happen?
I get the subfolder error because cordova is confused by the ":".
The comment in src/plugman/fetch.js::57, seems to hit the nail on the head
So the ":" implies that a subfolder should be used, but in this case it is indicating to npm to use semver to resolve.
What is expected to happen?
I was expecting cordova to understand semver
Funny detail
In plugins it is possible to use semver. That is, the plugin.xml depends on a module from npm that has a similar url with a ":", but in that context it works just fine.
Only visible difference is that one file is plugin.xml while the other is config.xml.
Information
Command or Code
NA
Environment, Platform, Device
NA
Version information
Cordova 9.0.0
Checklist
The text was updated successfully, but these errors were encountered: