Problem/Motivation

The module cannot be installed because the dependencies in composer.json are not D11 compatible.

Steps to reproduce

  1. Follow DDEV Drupal CMS Quickstart instructions for Drupal 11.
  2. Try to add iu_paragraphs composer dependency.
ddev composer require drupal/iu_paragraphs
./composer.json has been updated
Running composer update drupal/iu_paragraphs
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/iu_paragraphs * -> satisfiable by drupal/iu_paragraphs[2.0.0, ..., 2.2.3].
    - drupal/iu_paragraphs[2.0.0, ..., 2.0.3] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 11.1.1 (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.
    - drupal/iu_paragraphs[2.0.4, ..., 2.1.6] require drupal/core ^9.1.0-alpha1 -> found drupal/core[9.1.0, ..., 9.5.11] but the package is fixed to 11.1.1 (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.
    - drupal/iu_paragraphs[2.1.7, ..., 2.2.1] require drupal/core ^9.1 || ^10 -> found drupal/core[9.1.0, ..., 9.5.11, 10.0.0, ..., 10.4.1] but the package is fixed to 11.1.1 (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.
    - drupal/iu_paragraphs[2.2.2, ..., 2.2.3] require drupal/mask ^2.0@alpha -> found drupal/mask[dev-2.0.x, dev-2.1.x, 2.0.0-alpha1, ..., 2.1.x-dev (alias of dev-2.1.x)] but it does not match your minimum-stability.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/iu_paragraphs:*" to figure out if any version is installable, or "composer require drupal/iu_paragraphs:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Composer [require drupal/iu_paragraphs] failed, composer command failed: exit status 2.

Proposed resolution

  • Remove unnecessary dependencies.
  • Update dependencies to D11-compatible releases.

Remaining tasks

User interface changes

API changes

Data model changes

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

jwilson3 created an issue. See original summary.

jwilson3’s picture

Issue summary: View changes

  • jwilson3 committed 94990d13 on 2.2.x
    Issue #3498169 by jwilson3: IU Paragraphs Drupal 11 compatibility
    

  • jwilson3 committed d605383b on 2.2.x
    Issue #3498169 by jwilson3: re-export config YAML with D11 clean install
    
jwilson3’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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