Error: Failed to load font file, Unknown font format when using next/font/local
Opened this issue · 5 comments
milkyfuckinway commented
Link to the code that reproduces this issue
https://github.com/milkyfuckinway/next-error-unknown-font-format
To Reproduce
- Start the application "npm run dev"
- 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
milkyfuckinway commented
Fixed with downgrading node from 23 to 22
LinusDierheimer commented
Is there a fix for people using node 23?
wesbos commented
this should be opened - having this issue as well
milkyfuckinway commented
this should be opened - having this issue as well
Done, if tou can please add reproduction link, ive deleted mine, sorry
wesbos commented
looks to be upstream in fontkit: foliojs/fontkit#356