InvalidComponentException: [configuration.label_display] Boolean value found, but a string is required in ComponentValidator->validateProps() (line 205...)

Created on 7 February 2024, 10 months ago
Updated 2 September 2024, 3 months ago

There's a small issue with 6.0-beta9 (and dev) release resulting in WSOD:

Drupal\sdc\Exception\InvalidComponentException: [configuration.label_display] Boolean value found, but a string is required in Drupal\sdc\Component\ComponentValidator->validateProps() (line 205 of /app/web/core/modules/sdc/src/Component/ComponentValidator.php).

It can be easily fixed by changing templates/block/block.html.twig file to something like

{% include 'radix:block' with {
  configuration: {
    label_display: 'above'
  }
} %}

It looks like there's not documentation regarding the expected string values, though.

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇨🇿Czech Republic milos.kroulik

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024