Problem/Motivation
Once installed and configured, every request for a site page other than admin pages, generates the following error:
The component "varbase_components:badge" declared [content] both as a prop and as a slot...in Drupal\sdc\Component\ComponentValidator->validateDefinition() (line 67 of C:\...\docroot\core\modules\sdc\src\Component\ComponentValidator.php)
If I change the name of the slot in badge.component.yml on line 48, the error then happens with another component, varbase_components:button. I'm sorry, but I don't know the implications of just changing all the slot items that match properties or if they should be able to have the same name.
Steps to reproduce
Given a new clean install of varbase 10 alpha1 (on Apache httpd-2.4.47-win64-VS16, Win11, php 8.1.7)
When browser requests a site page
Then the above error message is added to watchdog log and user gets the standard try again later error message.
Proposed resolution
- Make sure to use different names for props and slots.
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
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release Varbase 10.0.0-alpha2, varbase_components-2.0.0-alpha5
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Comments
Comment #2
rajab natshahComment #3
rajab natshahThanks, Chris, for reporting this issue.
I confirm the issue
Only getting this error with headless automated testing
Comment #5
rajab natshahComment #6
rajab natshahComment #9
rajab natshahComment #10
rajab natshahThe website encountered an unexpected error. Please try again later.
Comment #14
rajab natshahComment #15
rajab natshahComment #16
rajab natshahComment #17
rajab natshah✅ Released varbase_components-2.0.0-alpha5
Comment #18
rajab natshah✅ Released Varbase 10.0.0-alpha2