CSS asset aggregation and Refused to apply style (MIME type wrong)

Created on 23 July 2024, 9 months ago
Updated 26 August 2024, 8 months ago

Problem/Motivation

Core CSS asset aggregation breaks page style when "Geolocation leaflet - Geocoding and Map" form widget is used.

Steps to reproduce

When we enable "Geolocation leaflet - Geocoding and Map" form widget in combination with a map control like e.g. "Recenter", we end up with broken page style and error like "Refused to apply style from + (path to aggregated css file) + because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

Proposed resolution

I solved it by setting "theme" instead of "component" within "leaflet" library, but not sure if it's the proper solution.

🐛 Bug report
Status

Fixed

Version

3.13

Component

Geolocation Field / Backend

Created by

🇷🇸Serbia miksha

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024