paulirish / lite-youtube-embed

A faster youtube embed.
https://paulirish.github.io/lite-youtube-embed/
Other
5.93k stars 274 forks source link

MIME text/html not supported stylesheet #185

Closed Samrridh closed 1 month ago

Samrridh commented 2 months ago

image mime type not supported. I am using an astro framework, and css is not applied to my frame, just this black dot. image though it is applied in the localhost, but i guess after build it is not able to use the css

sidenote: i installed using npm and not the other way

Samrridh commented 2 months ago

Refused to apply style from 'https://demowebsite.xyz/node_modules/lite-youtube-embed/src/lite-yt-embed.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

This issue is being consoled

Garbee commented 2 months ago

This is your web server not properly serving the file. It needs to appropriately set the Content-Type header for served files. How this is done depends on the web server. So please consult the documentation of whatever host you're using for further guidance, as this is not an issue with the yt-lite component itself.