简体   繁体   English

为什么 nextjs 试图导入一个不存在的样式表?

[英]Why is nextjs trying to import a stylesheet which doesn't exist?

Recently, I noticed that Nextjs is trying to import a stylesheet that doesn't exist (pictures below).最近,我注意到 Nextjs 正在尝试导入一个不存在的样式表(下图)。 I'm wondering how to fix this error.我想知道如何解决这个错误。

Hopefully I can find a solution here, cheers希望我能在这里找到解决方案,干杯

Webbrowser console Webbrowser network headers Webbrowser 控制台Webbrowser 网络标头

Initiator data发起者数据

if you have serviceworker check the file also...如果您有服务人员检查文件也...

My solution was to import the fonts via <link/> and not over @import style cs我的解决方案是通过<link/>而不是通过@import style cs 导入 fonts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM