Exception thrown when extended library is overridden false

Created on 13 October 2015, over 8 years ago
Updated 30 January 2023, over 1 year ago

In my theme:

libraries-override:
  classy/base: false
  classy/user: false
  classy/dropbutton: false
  classy/dialog: false

In Classy:

libraries:
  - classy/base
  - core/normalize

libraries-extend:
  user/drupal.user:
    - classy/user
  core/drupal.dropbutton:
    - classy/dropbutton
  core/drupal.dialog:
    - classy/dialog

Results in:

Drupal\Core\Asset\Exception\InvalidLibrariesExtendSpecificationException: The specified library "classy/dialog" does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend() (line 169 of /Users/jmburnz/Sites/contrib/drupal8/drupal/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).

Perhaps this is a critical oversight in the design of the libraries override/extend system and in particular with regards to how Classy is using these systems. I want to use Classy for its templates, but I do not want the CSS it is adding - I am using my own and Classy adds a lot of style that I simply don't want. All I want to do is blow away all classy CSS files - how do I do this and avoid writing PHP and not get an exception?

πŸ› Bug report
Status

Needs work

Version

9.2

Component
Asset libraryΒ  β†’

Last updated about 3 hours ago

No maintainer
Created by

πŸ‡³πŸ‡ΏNew Zealand Jeff Burnz

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.69.0 2024