Unable to enable bee_hotel module due to unmet dependency

Created on 28 August 2021, almost 3 years ago
Updated 3 September 2023, 10 months ago

Problem/Motivation

On a new installation of Drupal 8, neither drush nor the UI can enable the module. Instead the following error occurs:

The following extensions will be enabled: bee_hotel
Do you really want to continue? (y/n): y
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by bee_hotel have unmet dependencies: field.field.commerce_order_item.bee.field_booking [error]
(commerce_order.commerce_order_item_type.bee)
in /app/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:98
Stack trace:
#0 /app/core/lib/Drupal/Core/Config/ConfigInstaller.php(509): Drupal\Core\Config\UnmetDependenciesException::create('bee_hotel', Array)
#1 /app/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(132): Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'bee_hotel')
#2 /app/core/lib/Drupal/Core/Extension/ModuleInstaller.php(161): Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'bee_hotel')
#3 /app/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#4 phar:///usr/local/bin/drush/commands/core/drupal/environment_common.inc(91): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#5 phar:///usr/local/bin/drush/commands/core/drupal/environment_common.inc(158): drush_module_install(Array)
#6 phar:///usr/local/bin/drush/commands/pm/pm.drush.inc(1191): drush_module_enable(Array)
#7 phar:///usr/local/bin/drush/includes/command.inc(422): drush_pm_enable('bee_hotel')
#8 phar:///usr/local/bin/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#9 phar:///usr/local/bin/drush/includes/command.inc(199): drush_command('bee_hotel')
#10 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#11 phar:///usr/local/bin/drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#12 phar:///usr/local/bin/drush/includes/startup.inc(465): drush_main()
#13 phar:///usr/local/bin/drush/includes/startup.inc(369): drush_run_main(false, '/', 'Phar detected. ...')
#14 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#15 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#16 {main}

Reverting to 2.3.x-dev solved the issue.

Steps to reproduce

  1. Install Drupal
  2. composer require drupal/bee_hotel:2.4.x-dev@dev
  3. drush en bee_hotel

Proposed resolution

Perhaps this has something to do with the config sync system?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ldpm

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡΅πŸ‡ͺPeru Dyru

    I get this error " Unable to install BEE Hotel due to unmet dependencies: views.view.bee_hotel_units (field.storage.node.field_accept_reservations, field.storage.node.field_image_large, field.storage.node.field_slogan, image.style.mini_header) " I still can't solve the problem, thanks in advance, I already did the previous steps indicated

  • πŸ‡ΊπŸ‡ΈUnited States platinum1

    @Dyru Did you get this error resolved?

Production build 0.69.0 2024