Problem/Motivation
The drupal throws below error in some pages:
AssertionError: CSS must be nested under a category. See https://www.drupal.org/node/2274843. in assert() (line 175 of /app/web/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php).
Proposed resolution
- Remove the commented code in bootstrap5.libraries.yml
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bootstrap5-libraries_css_assertion_error-3390109.patch | 949 bytes | abinshoby |
Issue fork bootstrap-3390109
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
Comment #2
abinshoby commentedBelow patch can be used to resolve the issue.https://www.drupal.org/files/issues/2023-09-27/bootstrap5-libraries_css_assertion_error-3390109.patch
Comment #4
shelaneThere is no bootstrap5.libraries.yml file in this theme and no support for Bootstrap 5. I’m not sure what problem is being reported for this theme.
Comment #5
avpaderno@abinshoby Are you sure you are not using the Bootstrap5 theme?
Comment #6
avpadernoI am resetting the Assigned field, since the assigned person has not worked on the issue in the past 24 hours.
Comment #7
jannakha commented- How do you reproduce this issue? I can't reproduce on my local.
- Re: Patch #2: How does removing commented out lines resolve the issue?
Comment #8
jannakha commented