Problem/Motivation
Facing this error when using the button, badges, and progress barWarning: Undefined array key 1 in Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies() (line 67 of core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php).
When having a replace for a component in a new generated cloned theme.
replaces: 'varbase_components:badge'replaces: 'varbase_components:button'replaces: 'varbase_components:progress-bar'
Proposed resolution
Change the libraryOverrides from
varbase_components:bs-base-component-script
To
varbase_components/bs-base-component-script
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
- ✅ 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 varbae-10.0.0, varbase_components-2.0.0-rc2
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
Release notes snippet
- Issue #3452200 by Ahmad Abbad: Fixed wrong call for libraries-override in components
Issue fork varbase_components-3452200
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 #3
ahmad abbad commentedComment #4
rajab natshahComment #5
rajab natshahComment #7
rajab natshahComment #8
rajab natshahA test check on all other
replacesComment #9
rajab natshahComment #10
rajab natshah✅ Released varbase_components-2.0.0-rc2
Comment #11
rajab natshah