The Select2 requirement is not compatible with Drupal 11

Created on 20 March 2025, about 1 month ago

Problem/Motivation

When installing the module on Drupal 11, the module requires the select2 module.

The composer.json in this module is requiring 'drupal/select:^1' which is not compatible with Drupal 11.

Steps to reproduce

Run:

composer require 'drupal/entity_reference_views:^1.1'

result:

  Problem 1
    - Root composer.json requires drupal/entity_reference_views * -> satisfiable by drupal/entity_reference_views[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev].
    - drupal/entity_reference_views[1.0.0-alpha1, ..., 1.0.0] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - drupal/entity_reference_views 1.1.0-beta1 requires drupal/core ^8.8 || ^9 || ^10 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - drupal/entity_reference_views[dev-1.x, 1.1.0, ..., 1.x-dev] require drupal/select2 ^1 -> found drupal/select2[dev-1.x, 1.0.0-beta1, ..., 1.x-dev (alias of dev-1.x)] but it conflicts with your root composer.json require (^2).

You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/entity_reference_views:*" to figure out if any version is installable, or "composer require drupal/entity_reference_views:^2.1" if you know which you need.

Proposed resolution

Change the select2 version to 2

Remaining tasks

Change the composer.json

Review if the new select2 is compatible with everything in the module.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States camoa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024