Problem/Motivation
When an install profile lists this module to be installed, the following Exception occurs:
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">broken_link</em> have unmet dependencies: <em class="placeholder">views.view.broken_link (views)</em> in /app/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:98
The issue is that the module contains a views configuration in config/install/, but does not list views as a dependency, nor allows this to be optional.
Steps to reproduce
For convenience, I have reproduced the issue here. But you may reproduce it with the following steps:
- Create a basic install profile
*.info.yml, listing the following:
dependencies:
- broken_link
- Install the profile.
These steps should produce the error noted above.
Proposed resolution
Move views.view.broken_link.yml from config/install/ to config/optional/.
OR
List views as a dependency in broken_link.info.yml.
Comments
Comment #4
elimw commentedI have added 'views' as a dependency in broken_link.info.yml and created a merge request.
Comment #5
elimw commentedIn the meantime, here's a patch that can be added added to composer.json files.
Comment #6
damyon commentedI have tested that patch on #5 and it fixes this problem for me.
Comment #7
grimreaperHello,
Patch 5 fixes the issue. Thanks!
Comment #8
manojapare commentedChanges merged. Thanks
Comment #9
manojapare commentedComment #10
manojapare commentedComment #11
manojapare commented