Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refused to apply style because its MIME type ('application/json') is not a supported

I want to use the fullcalendar library, using gulp and yarn this is the generated link tag:

But I'm getting this error in the console :

Refused to apply style from 'http://localhost/bower_components/fullcalendar/dist/fullcalendar.css' because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Why I'm getting this and how can I solve it?

like image 501
Renaud is Not Bill Gates Avatar asked Dec 24 '22 09:12

Renaud is Not Bill Gates


1 Answers

In my case, I found out that I had a typo in css file name. Thus I was trying to import an non existing file.

like image 154
Sap Avatar answered Dec 28 '22 07:12

Sap