10.2.6 Error - CSS preprocessing / aggregation fails, resulting in broken page / style

Created on 2 May 2024, about 2 months ago
Updated 22 May 2024, 29 days ago

Hi,

As soon as I updated to 10.2.6, I started getting errors. I have been troubleshooting for hours, and it seems like when CSS is injected and aggregated (via core), it causes the following error:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The libraries to include are encoded incorrectly. in Drupal\system\Controller\AssetControllerBase->Drupal\system\Controller\{closure}() (line 168 of /var/www/html/web/core/modules/system/src/Controller/AssetControllerBase.php).

The browser console also includes errors like:

Refused to apply style from <URL> because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States duckydan

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024