vercel/next.js

Error: Failed to load font file, Unknown font format when using next/font/local

Opened this issue · 5 comments

Link to the code that reproduces this issue

https://github.com/milkyfuckinway/next-error-unknown-font-format

To Reproduce

  1. Start the application "npm run dev"
  2. Errors "Failed to load font file: (path) Unknown font format" will appear in console

Current vs. Expected behavior

Expect no errors

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise
  Available memory (MB): 16244
  Available CPU cores: 12
Binaries:
  Node: 23.4.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.1.1 // Latest available version is detected (15.1.1).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Font (next/font)

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local)

Additional context

No response

Fixed with downgrading node from 23 to 22

Is there a fix for people using node 23?

this should be opened - having this issue as well

this should be opened - having this issue as well

Done, if tou can please add reproduction link, ive deleted mine, sorry

looks to be upstream in fontkit: foliojs/fontkit#356