- Issue created by @camoa
- Merge request !8Adding the option of Select2 v2 in composer to fix Drupal 11 installation β (Open) created by Unnamed author
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.
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.
Change the select2 version to 2
Change the composer.json
Review if the new select2 is compatible with everything in the module.
Active
1.0
Code