admin管理员组文章数量:1395237
I'm getting this error from a NextJS and TailwindCSS project.
Error evaluating Node.js code
Error: Cannot apply unknown utility class: font-extrabold
I saw similar posts and I've tried the suggestions but still no luck.
I'm trying to create a utilities class/css in globals.css file, but for some reason tailwind doesn't understand 'font-extrabold' css or any other custom css
@layer utilities {
.text-30-extrabold {
@apply text-[30px] font-extrabold text-white;
}
}
Here's my folder structure, my fonts are hosted locally.
└──
本文标签:
nextjsTailwindCSS Custom Fonts Error Cannot apply unknown utility class fontextraboldStack Overflow
版权声明:本文标题:next.js - TailwindCSS Custom Fonts Error: Cannot apply unknown utility class: font-extrabold - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1744757124a2623531.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论