我想使用 fullcalendar 库,使用 gulp 和 yarn 这是生成的链接标签:
但我在控制台中收到此错误:
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.
为什么会出现这个问题,我该如何解决?
最佳答案
在我的案例中,我发现我的 css 文件名有错别字。因此我试图导入一个不存在的文件。
关于css - 拒绝应用样式,因为其 MIME 类型 ('application/json' 不受支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49263433/