Requiring Photoswipe, but not Layout Builder causes config import errors

Created on 25 December 2024, 4 months ago

Problem/Motivation

The inclusion of the Photoswipe module causes "$drush cim" or "$drush deploy" to fail if the Layout Builder is not installed. I do not use Layout Builder.

Error Output:
  ================

  In ConfigImportCommands.php line 291:


    The import failed due to the following reasons:

    Configuration <em class="placeholder">core.entity_view_display.media.image.media_photoswipe</em> depends on the <em class="placeholder">Layout Builder</em> mod
  ul
    e that will not be installed after import.




  In ConfigImporter.php line 823:


    There were errors validating the config synchronization.

    Configuration <em class="placeholder">core.entity_view_display.media.image.media_photoswipe</em> depends on the <em class="placeholder">Layout Builder</em> mod
  ul
    e that will not be installed after import.

I tried disabling the photoswipe module, but Drupal also wanted to uninstall the Media Gallery module.

Proposed resolution

Don't enable the photoswipe module by default. Don't depend on it.
If this isn't feasible, change your documentation to have in BIG BOLD letters that one shouldn't install v3 if one isn't using the Layout Builder.

πŸ› Bug report
Status

Active

Version

3.0

Component

Default

Created by

πŸ‡ΊπŸ‡ΈUnited States kenrbnsn New Jersey

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

Comments & Activities

Production build 0.71.5 2024