The specified library stable/normalize does not exist, after installation

Created on 25 April 2024, 8 months ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

After installing material_base via composer and installing and setting as the default theme on drupal 10 on a local installation, I got the following error and was unable to access the Home page of the site:

Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library stable/normalize does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (line 105 of core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).

Steps to reproduce

Install drupal 10, install material base using the composer command: `composer require 'drupal/material_base:^2.0'`
I have 2 installations of drupal, one of them was a fresh install with just bootstrap 5 theme installed, I was also getting the same issue on both when following steps above (installing and setting as default the material base theme)

Proposed resolution

All I could find from googling was that it seems to be either a conflcit between stable versions (seems to be one in core and one in the module) or an incorrect location specified somewhere.
Despite uninstalling and removing the module and reinstalling, and checking the info.yml as suggested in the installation guide (https://git.drupalcode.org/project/material_base/-/blob/8.x-2.x/docs/ind...) I did not have any luck resolving the error.

I also did try installing stable theme ( https://www.drupal.org/project/stable ) however this installed it in the theme folder and not the core themes folder and made no difference.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom dwhite24

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

Comments & Activities

  • Issue created by @dwhite24
  • 🇬🇧United Kingdom dwhite24
  • 🇬🇧United Kingdom dwhite24
  • Status changed to Closed: duplicate 8 months ago
  • 🇬🇪Georgia iamdroid

    Hi. This is a dupe of #3316641: Replace "Stable" base theme which was merged into 2.x-dev.

    But I would recommend using 3.0.0-beta1 straight away.

    The root of the issue is that the stable theme was removed from the core but stable9 is still there. The reference was fixed in stable9. However in 2.x we used an alternative approach and used our own copy of that theme, which turned out wrong decision. And it is a good example of why it was a wrong decision since didn't receive the fix automatically when it was fixed in stable9. In 3.x branch we moved back to core's stable9 theme.

  • 🇬🇧United Kingdom dwhite24

    Ok, thank you very much for the speedy response.
    I was looking at this theme for potentially using on a project, that I am working on. If I do install it I will let you know if I have any issues.
    Thanks again :)

Production build 0.71.5 2024