Fix duplicate library definitions in field_group.libraries.yml

Created on 25 April 2025, about 1 month ago

The field_group.libraries.yml file contains duplicate library definitions for:

  • details_validation
  • tab_validation
  • tabs_validation

This causes a Drupal\Core\Asset\Exception\InvalidLibraryFileException with the error message "Duplicate key 'details_validation' detected" when Drupal tries to parse the library definitions.

Steps to reproduce:

  1. Install the Field Group module
  2. Clear Drupal's cache
  3. The error will appear in the logs

Proposed solution:

Remove the duplicate library definitions from the file, keeping only the first instance of each library definition which includes the proper header: false and version: VERSION properties.

Impact:

This bug affects all Drupal installations using the Field Group module, preventing proper asset loading and potentially breaking field group functionality.

Environment:

  • Drupal 10.x
  • Field Group module (latest version)
πŸ› Bug report
Status

Active

Version

4.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States Mirakolous

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

Comments & Activities

Production build 0.71.5 2024