Problem/Motivation
Installing the module for Drupal 9.4.6 fails with an error:
Problem 1
- drupal/media[dev-1.x, 1.x-dev] require drupal/core ^8 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but these were not loaded, likely because it conflicts with another require.
- drupal/advanced_gutenberg_blocks 1.0.0-beta1 requires drupal/media * -> satisfiable by drupal/media[dev-1.x, 1.x-dev (alias of dev-1.x)].
- drupal/media 1.x-dev is an alias of drupal/media dev-1.x and thus requires it to be installed too.
- Root composer.json requires drupal/advanced_gutenberg_blocks ^1.0@beta -> satisfiable by drupal/advanced_gutenberg_blocks[1.0.0-beta1].
Although, when downgrading to Drupal 9.4.3 it works fine.
Steps to reproduce
Install the module using composer:
composer require 'drupal/advanced_gutenberg_blocks:^1.0@beta'
Comments
Comment #2
rajesh bhimani commentedThank you for your feedback. We are looking into it and will try to fix the issue by this weekend.
Have a great weekend and Thank you once again.
Comment #3
mmjvb commentedWorkaround:
This bug in core was introduced at 9.4.4 when they removed these modules from the replace section. No longer advertising these modules as provided by core makes for these problems. The workaround allows for installation but is not a permanent fix.
You can no longer have a dependency on a module that used to be provided by core. The facade manipulates dependency information declared in the info.yml, provided it uses the recommended format [project]:[module]. It also manipulates the meta information for composer. Couldn't find proper documentation on what it does. Consider what is done wrong, but they insist on keeping it this way.
As removing the requirement is a maintainer of the module activity, recommend the workaround at it can be done by the maintainer of the site.
Comment #4
rajesh bhimani commentedHello hodba,
We have checked by downloading latest version 9.4.6 and it seems to us working fine.
We are not able to replicate issue, More details or steps would help to understand and fix it. if possible provide screenshots/video
FYI: All the dependency are required to work with our module like media library module and gutenberg module.
Also, thanks to mmjvb for providing detail information.
Thank you all for checking and giving feedback about our module.
Comment #5
mmjvb commentedJust reproduced:
Comment #8
deg commentedJust reproduced as well. As mentioned by mmjvb, it looks like this is an issue caused by https://www.drupal.org/project/drupal/issues/3292380. I believe removing 'media' and 'media-library' from advanced_gutenberg_blocks.info.yml should resolve the issue. I'm trying to create a PR but having some issues with my localdev setup.
Comment #9
szeidlerI haven't checked Drupal's Composer facade (the one that transforms info.yml dependencies into composer dependencies, if there is no composer.json in the module). Might it work to prefix the dependency, for example
drupal:media?Comment #10
rajesh bhimani commentedThank you szeidler and mmjvb for your feedback.
We have updated module and added composer.json in the our module.
Issue has been resolved with new latest release beta2.
You can check with this
composer require 'drupal/advanced_gutenberg_blocks:^1.0@beta'Comment #11
rajesh bhimani commentedComment #12
rajesh bhimani commentedComment #13
rajesh bhimani commentedIssue is already fixed 12 months ago