next.js - TailwindCSS Custom Fonts Error: Cannot apply unknown utility class: font-extrabold - Stack Overflow

I'm getting this error from a NextJS and TailwindCSS project.Error evaluating Node.js codeError:

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.


└── 

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744757124a4591950.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信