I find no way to activate this module with the newerst dev version of Facets
https://www.drupal.org/project/facets/releases/8.x-1.x-dev
Is there a chance with a Patch? Or is it really incompatible?
Thanks it would be a great solution

Comments

selecta created an issue. See original summary.

dcam’s picture

What version of Drupal are you using?

selecta’s picture

Drupal Version
8.8.6

dcam’s picture

Status: Active » Fixed
Related issues: +#3122687: Drupal 9 compatibility

I'm sure this was because of conflicting version requirements. I needed to update the version requirements for D9 anyway. I just released Beta 6 with that change. If it doesn't work for you, then set this issue's status back to Active and I'll take another look.

selecta’s picture

The Module Works perfectly.
The problem is in your .info.yml file:

dependencies:
- facets:facets (>=8.x-1.0-beta1)

But the newest dev version of Facet is written as "drupal/facets": "1.x-dev"
in my root composer.json file.
So Entity Reference Facet Link is unable to activate except i delete or overwrite your dependence.

But still this module saved hours of my life!
Thx

dcam’s picture

Oh, I get what's happening now.

First off, there's nothing wrong with the dependency in the .info file. .info and composer.json dependencies are written differently. Check out https://www.drupal.org/docs/creating-custom-modules/let-drupal-know-abou... for more info.

What's happening is that ERFL needs a specific minimum version of Facets required in order to work (because of an API change, if you want to know). But it sounds like you have dev branch of Facets downloaded. Drupal doesn't know that your dev branch includes that minimum version. All it sees is the dev branch. So it thinks the dependency isn't fulfilled.

I don't know why you need the Facets dev branch instead of the latest version. I'm going to guess that it's because you need a bug fix or feature that's in it. If that's the case then once a new release has been made you should require that. Until then you can keep the ERFL dependency deleted as you've done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kreatil’s picture

I'm running Facets 8.x-1.5. I get the same error on admin/reports/status: Unresolved dependency -- Facets (Version >=8.x-1.0-beta1 required)

platinum1’s picture

Same error with Facets 8.x-1.5