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

Command icon 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

Ahmad Abbad created an issue. See original summary.

ahmad abbad’s picture

Status: Active » Needs review
rajab natshah’s picture

Assigned: ahmad abbad » Unassigned
rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

rajab natshah’s picture

Issue summary: View changes

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'

A test check on all other replaces

rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.