The module's dependencies are listed incorrectly, there seems to be confusion between how Drupal handles dependencies with how Composer does it.

Drupal's dependencies must be in one of these two formats:

  • [module/theme name]
  • [projectname]:[module/theme name]

Examples would be:

  • drupal:field_ui
  • metatag
  • metatag:metatag_open_graph

The idea is that if the project just has one module or theme in it you can just reference that item on its own. However, if your project needs to reference a submodule or subtheme from a package, e.g. the "metatag_open_graph" submodule of the "metatag" package, you need to list the package first and then the submodule. You specifically only list "drupal" as the package name when you are specifically referring to a module that is part of core, e.g. "field_ui", you don't use it as a general flag to say "this is a Drupal module", because that is assumed.

This extended format is specifically not to be confused with the Composer system for indicating that all of these modules are part of the Drupal ecosystem. For example, in composer.json you would say "drupal/metatag" to pull down the entire Metatag package. However, Composer doesn't know about the submodules in a Drupal package, so you wouldn't say "drupal/metatag_open_graph" as that would just confuse Composer.

Because of this bug it is not possible to enable the module.

CommentFileSizeAuthor
#2 node_layout_builder-n2997354-2.patch446 bytesdamienmckenna

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new446 bytes

This should fix the problem, it changes the dependencies to [package]:[module] format.

kamalMaroc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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