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
Comments
Comment #3
vinmassaro commentedComment #4
vinmassaro commentedComment #5
cristiroma commentedWe have tested the MR into one of our projects and it works.