Requirement drupal/core_event_dispatcher ^3

Created on 25 December 2023, 11 months ago
Updated 19 April 2024, 7 months ago

Trying to install BEE Hotel on a D10.2 site.

Composer reports the following problem:

Problem 1
- drupal/bee_hotel[2.21.0-rc1, ..., 2.21.x-dev] require drupal/core_event_dispatcher ^3 -> satisfiable by drupal/core_event_dispatcher[3.0.0-alpha1, ..., 3.x-dev].
- drupal/bee_hotel 2.21.0-beta1 requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (^10.2).
- drupal/core_event_dispatcher[3.0.0-alpha1, ..., 3.2.0] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (^10.2).
- drupal/core_event_dispatcher[3.3.0, ..., 3.x-dev] require drupal/core ^9.3 -> found drupal/core[9.3.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (^10.2).
- Root composer.json requires drupal/bee_hotel ^2.21 -> satisfiable by drupal/bee_hotel[2.21.0-beta1, 2.21.0-rc1, 2.21.x-dev].

🐛 Bug report
Status

Fixed

Version

2.21

Component

Code

Created by

🇿🇦South Africa epicure.club

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

Comments & Activities

  • Issue created by @epicure.club
  • 🇮🇹Italy afagioli Rome

    At this stage, you should try:

    composer require 'drupal/hook_event_dispatcher:^4.0@RC'

  • Status changed to Needs review 11 months ago
  • 🇮🇹Italy afagioli Rome

    #2 works with latest devel, not with 2.21.0-rc1

  • 🇮🇳India farhanmae Bengaluru

    still getting same error after applying #2 🐛 Requirement drupal/core_event_dispatcher ^3 Needs review with bee_hotel:2.21.x-dev@dev

    composer require 'drupal/bee_hotel:2.21.x-dev@dev'
    ./composer.json has been updated
    Running composer update drupal/bee_hotel
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - drupal/core_event_dispatcher[3.0.0-rc1, ..., 3.2.0] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0-rc1, ..., 8.9.20, 9.0.0-rc1, ..., 9.5.11] but the package is fixed to 10.2.0 (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/core_event_dispatcher[3.3.0, ..., 3.3.4] require drupal/core ^9.3 -> found drupal/core[9.3.0-rc1, ..., 9.5.11] but the package is fixed to 10.2.0 (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/bee_hotel 2.21.x-dev is an alias of drupal/bee_hotel dev-2.21.x and thus requires it to be installed too.
        - drupal/bee_hotel dev-2.21.x requires drupal/core_event_dispatcher ^3 -> satisfiable by drupal/core_event_dispatcher[3.0.0-rc1, ..., 3.3.4].
        - Root composer.json requires drupal/bee_hotel 2.21.x-dev@dev -> satisfiable by drupal/bee_hotel[2.21.x-dev (alias of dev-2.21.x)].
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    
  • 🇿🇦South Africa epicure.club

    Same result as #5.

    My analysis of the composer output is that the BEE Hotel module has drupal/core_event_dispatcher ^3 as a dependency. Loading drupal/core_event_dispatcher ^4 with composer does not change the dependency listed in the app.

  • 🇿🇦South Africa epicure.club

    Problem 1
    - drupal/bee_hotel dev-2.21.x requires drupal/core_event_dispatcher ^3 -> found drupal/core_event_dispatcher[dev-3.x, 3.0.0-alpha1, ..., 3.x-dev (alias of dev-3.x)] but it conflicts with your root composer.json require (^4.0).
    - drupal/bee_hotel 2.21.x-dev is an alias of drupal/bee_hotel dev-2.21.x and thus requires it to be installed too.
    - Root composer.json requires drupal/bee_hotel 2.21.x-dev@dev -> satisfiable by drupal/bee_hotel[2.21.x-dev (alias of dev-2.21.x)].

  • 🇮🇹Italy afagioli Rome

    Current dev fixes this. It's dev. Only use this now for testing

    Please check out also updated details here
    https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

  • 🇮🇹Italy afagioli Rome

    The Bee Hotel install guide works with latest releases

  • Status changed to Fixed 11 months ago
  • Status changed to Needs review 10 months ago
  • 🇩🇪Germany Umac_de

    @ #9
    it works because of
    "minimum-stability": "dev" in composer
    else you get

    - drupal/bee_hotel dev-2.21.x requires drupal/core_event_dispatcher ^4 -> found drupal/core_event_dispatcher[dev-4.x, 4.0.0-alpha1, ..., 4.x-dev (alias of dev-4.x)] but it does not match your minimum-stability.

  • 🇮🇹Italy afagioli Rome

    #12 Correct
    We're today stuck on dev by the commerce package also...

    With lastest https://www.drupal.org/project/bee_hotel/releases/2.21.1 , we should close this issue as fixed

  • Status changed to Fixed 8 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024