Unable to install due to conflict with Components module version

Created on 29 November 2023, 7 months ago
Updated 14 December 2023, 7 months ago

Problem/Motivation

When installing CivicTheme via Composer (composer require drupal/civictheme), the follow errors are shown:

  Problem 1
    - drupal/civictheme[1.4.7, ..., 1.5.1] require drupal/components ^2 || ^3@beta -> satisfiable by drupal/components[2.0.0, ..., 2.4.0].
    - drupal/civictheme[1.4.2, ..., 1.4.5] require drupal/components ^2 -> satisfiable by drupal/components[2.0.0, ..., 2.4.0].
    - drupal/components[2.0.0, ..., 2.4.0] require drupal/core ^8.7.7 || ^9 -> found drupal/core[8.7.7, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 10.1.6 (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/civictheme 1.6.0 requires drupal/components ^3@beta -> found drupal/components[dev-3.x, 3.0.0-alpha1, ..., 3.x-dev (alias of dev-3.x)] but it does not match your minimum-stability.
    - Root composer.json requires drupal/civictheme * -> satisfiable by drupal/civictheme[1.4.2, ..., 1.6.0].

I was able to install the theme after first installing Beta3 of Components:
composer require 'drupal/components:^3.0@beta'

Steps to reproduce

  1. Install vanilla D10 via composer
  2. Run composer require drupal/civictheme

Proposed resolution

Update the dependencies?

πŸ› Bug report
Status

Closed: works as designed

Version

1.6

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia Toby Wild

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

Comments & Activities

  • Issue created by @Toby Wild
  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡¦πŸ‡ΊAustralia alex.skrypnyk Melbourne

    The described issues is not related to CivicTheme directly but rather a codebase where the CivicTheme is installed into. In this case, the `composer.json` file should have a `minimum-stability` property defined as `beta` to allow including the Components module at a beta version 3.

  • πŸ‡¦πŸ‡ΊAustralia Toby Wild
Production build 0.69.0 2024