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

wblancditjolicoeur created an issue. See original summary.

cweagans’s picture

Status: Active » Closed (duplicate)
Related issues: +#2837772: drupal/facets is broken

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

cweagans’s picture

(Note that that issue will also fix this one - it appears to be a problem with the search_api dependency specifically)

christianadamski’s picture

I love issues that fix themselves.

Thanks for the update