Error CSS must be nested under a category

Created on 28 February 2019, over 5 years ago
Updated 26 June 2023, about 1 year ago

Replicate error:
- Enable yasm module
- Go to /admin/reports/yasm

Then the error will pop-up:
Error: The website encountered an unexpected error. Please try again later.
AssertionError: CSS must be nested under a category. See https://www.drupal.org/node/2274843 β†’ . in assert() (line 133 of core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).

I think this is because at the file yasm.libraries.yml at line 5 (assets/css/yasm.css) you need to add {} at the end, like: "assets/css/yasm.css: {}"

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain ctarres

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.

  • First commit to issue fork.
Production build 0.69.0 2024