Problem/Motivation

Error after enabling Gin as Admin theme.

The website encountered an unexpected error. Please try again later.

Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library claro/classy.book-navigation does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (line 105 of core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('classy') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('classy') (Line: 144)
Drupal\Core\Asset\LibraryDiscoveryCollector->applyLibrariesExtend('core', 'drupal.dialog', Array) (Line: 111)
Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('core') (Line: 66)
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('core') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('core') (Line: 44)
Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('core') (Line: 58)
Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('core', 'html5shiv') (Line: 54)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 31)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 104)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 116)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, ) (Line: 315)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 161)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object) (Line: 191)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 173)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install latest Gin theme in combination with Drupal 8.8.8

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Martijn de Wit created an issue. See original summary.

saschaeggi’s picture

Could be that the libraries only exist in D 8.9+
Is it possible for you to update to D 8.9? If this would fix the problem I might need to bump up the required Drupal version to 8.9+.
Otherwise you could use a patch to remove this missing library for the time being.

I'll also have a look into this.

Martijn de Wit’s picture

I can try to update. The reason we are on 8.8.8 are some patches that are not 8.9 ready (yet).

Martijn de Wit’s picture

---

saschaeggi’s picture

Was more an idea to verify if the problem only appears on D 8.8.x :)
As a quickfix you might just want to remove the library which causes the issue from the info.yml file

Martijn de Wit’s picture

Had to remove all these libraries to get it working.

  classy/book-navigation: claro/classy.book-navigation
  classy/file: claro/classy.file
  classy/forum: claro/classy.forum
  classy/indented: claro/classy.indented
  classy/media_embed_ckeditor_theme: claro/classy.media_embed_ckeditor_theme
  classy/media_embed_error: claro/classy.media_embed_error
  classy/node: claro/classy.node
  classy/progress: claro/progress
  classy/search-results: claro/classy.search-results

Made 2 patches:

  1. The first one is for Drupal 8.8.8, this patch removes all missing libraries.
  2. The second one is for Drupal >8.9.0, this patch bumps up the required version.
Martijn de Wit’s picture

Title: Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library claro/classy.book-navigation does not exist. » Drupal 8.8.8 - Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library claro/classy.book-navigation does not exist.

saschaeggi’s picture

Status: Active » Needs review

I've checked the new libraries and it seems we don't need either of those adjustments. So I could safely remove them again. Which means the theme will stay compatible with D 8.8.x.
Please do a short review on D 8.8.8 if everything works like excepted and then we can include this into the next release.
Thanks for reporting

Martijn de Wit’s picture

Status: Needs review » Reviewed & tested by the community

Nothing to report. Working like a charm now. I'm very happy with it.
Think this is fine to be released

saschaeggi’s picture

Status: Reviewed & tested by the community » Fixed

Will be included in the next release which is due in the next days.
Thanks!

saschaeggi’s picture

Status: Fixed » Closed (fixed)

included in alpha26 release