Problem/Motivation

When installing search_api_html_element_filter 1.0.5 in Drupal 11, and drupal/core-dev is also in composer.json, installation fails:

Your requirements could not be resolved to an installable set of packages.

Problem 1
    - Root composer.json requires drupal/search_api_html_element_filter 1.0.5 -> satisfiable by drupal/search_api_html_element_filter[1.0.5].
    - drupal/search_api_html_element_filter 1.0.5 requires symfony/dom-crawler ^3.4|^4.0|^5.0|^6.0 -> found symfony/dom-crawler[v3.4.0, ..., v3.4.47, v4.0.0, ..., v4.4.45, v5.0.0, ..., v5.4.52, v6.0.0, ..., v6.4.40] but the package is fixed to v7.4.12 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Steps to reproduce

Attempt to install in an existing project using drupal/core-dev

Proposed resolution

Increase symfony/dom-crawler version compatbility

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vinmassaro created an issue. See original summary.

vinmassaro’s picture

Status: Active » Needs review
vinmassaro’s picture

Title: ^11 cannot be installed if drupal/core-dev is installed - bump symfony/dom-crawler versions in composer.json » 1.0.5 cannot be installed if drupal/core-dev is installed - bump symfony/dom-crawler versions in composer.json
cristiroma’s picture

Status: Needs review » Fixed

We have tested the MR into one of our projects and it works.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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