Asset variable.css throwing mime type error (not found)

Created on 23 October 2023, about 1 year ago

Problem/Motivation

Loading a page where the theme is enabled shows in console an error like this
mywebsite.com/themes/contrib/bootstrap_barrio/css/components/variables?12345' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
This is normally a 404 not found error
As far as i see, the declaration of this asset in the libraries file only shows "variables" instead of "variables.css"

Steps to reproduce

- Load a page that is using this theme
- Open developers theme in your browser, Console tab
- You should see the error.

Proposed resolution

Add the missing part of the file name.

🐛 Bug report
Status

Fixed

Version

5.5

Component

Code

Created by

🇪🇸Spain karma0321

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024