When I try to install the module via composer. (Either with composer require drupal/core_views_facets or setting the requirement in my composer.json
"require": {
...
"drupal/core_views_facets": "1.x-dev",
...
}
composer throws a runtimeException
[RuntimeException]
Could not load package drupal/core_views_facets in https://packages.drupal.org/8: [UnexpectedValueException] Could not parse version constraint ~: Invalid version string "~"
Could you add a "composer.json" file to this project so it can be installed with composer ?
Comments
Comment #2
cweagansDrupal projects don't need a composer.json in order to be installed with Composer. This is actually a problem with the composer metadata that Drupal.org generates, so this is a duplicate of #2837772: drupal/facets is broken.
Comment #3
cweagans(Note that that issue will also fix this one - it appears to be a problem with the search_api dependency specifically)
Comment #4
christianadamski commentedI love issues that fix themselves.
Thanks for the update