Problem/Motivation

A site installed from a recipe that enables the Node module crashes with Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase::calculateDependencies() (line 302), surfaced via LayoutBuilderEntityViewDisplay.

core.entity_view_mode.node.full and .teaser are config entities shipped by core's Node module. When a recipe enables a module, RecipeRunner::installModules() uses the config installer's syncing mode, which only creates simple configuration; config entities are skipped unless the recipe explicitly imports them. On a site installed from a recipe (Node installed by the recipe machinery, not already present), those two view modes are never created. The Component/Product/Project modules' *.full and *.teaser view displays list them in dependencies.config, so loading those displays null-derefs.

Steps to reproduce

Run drush site:install from the cucumber_starter recipe. Install crashes while building the Component/Product/Project entity view displays.

Proposed resolution

Import the two view modes explicitly in the three foundation recipes (cucumber_components, cucumber_products, cucumber_projects — recipes/foundation/recipe.yml):

    node:
      - core.entity_view_mode.node.full
      - core.entity_view_mode.node.teaser

Verified: with this change, drush site:install from cucumber_starter completes and all Cucumber content is present.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed d5d6acf5 on 12.0.x
    fix: #3625407 Import the Full and Teaser view modes so recipe installs...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed

✅ Released in 12.0.3.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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