Problem/Motivation
The Component Validator throws InvalidComponentException when slots contain content examples, preventing components from loading properl
Error:
Drupal\Core\Render\Component\Exception\InvalidComponentException: [slots.media.examples[0]] Object value found, but a string is required in Drupal\Core\Theme\Component\ComponentValidator->validateDefinition() (line 144 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Proposed resolution
Remove examples from slot definitions in component YAML files. Slots should only contain title and description properties.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3535765-invalidcomponentexception-media-component-slots-examples.patch | 684 bytes | ivanbarr |
Issue fork artisan-3535765
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
Comment #2
ivanbarr commentedComment #3
anirudhsingh19 commentedworking on it.
Comment #5
anirudhsingh19 commentedCreated MR for this patch.
Comment #6
tunicPatch works ok, error is gone.
Raising to critical as the site is not working at all.
Comment #9
tunic