Replies: 16 comments 12 replies
-
import Head from 'next/head'
import Image from 'next/image'
- import { Inter } from '@next/font/google'
import styles from '@/styles/Home.module.css'
- const inter = Inter({ subsets: ['latin'] })
|
Beta Was this translation helpful? Give feedback.
-
same problems
|
Beta Was this translation helpful? Give feedback.
-
same issue, i'm not using a vpn. |
Beta Was this translation helpful? Give feedback.
-
This work for me #45080 (comment) |
Beta Was this translation helpful? Give feedback.
-
Update your project as follows.
after updating those files please restart the project and clear the browser cache. |
Beta Was this translation helpful? Give feedback.
-
if weight is assigned, remove example const nunito = Nunito_Sans({
weight: '400', ✖️
subsets: ['latin'],
display: 'swap',
adjustFontFallback: false,
})` |
Beta Was this translation helpful? Give feedback.
-
In the Nextjs tutorial, this error still happens and I'm not using a proxy. Next.js 14.0.0 |
Beta Was this translation helpful? Give feedback.
-
Late to the Party. For others that might be having similar issue. Remove your
Run build again
Restart your server. |
Beta Was this translation helpful? Give feedback.
-
For my case it was the internet I was using. Somehow it was making next not to be able to download the font. After switching the internet, it worked fine. |
Beta Was this translation helpful? Give feedback.
-
For me i've fixed removing the font declaration from a deep layout file
And export it from a src/app/fonts.ts file
|
Beta Was this translation helpful? Give feedback.
-
I'm having this issue when using the app router (Next.js 14.2.4) with Turbopack inside a docker container. I've tried My error message:
I've verified the issue goes away if I run the project outside of docker. Any ideas on how to solve the issue specifically for Turbopack+Docker? |
Beta Was this translation helpful? Give feedback.
-
Same issue, not on VPN, have a named export of Inter. |
Beta Was this translation helpful? Give feedback.
-
I was facing this issue and restarted my laptop then removed .next and ran npm install then npm run build and it got fixed. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue, Following is the output
Then I wanted to check if the website is reachable > curl https://fonts.googleapis.com/css2?family=Inter&display=swap
[1]+ Done curl https://fonts.googleapis.com/css2?family=Inter
[1] 179498
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf) format('truetype');
} It means the website is reachable. So what? may b the font itself is not available? > wget https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf
[1]+ Done curl https://fonts.googleapis.com/css2?family=Inter
--2025-05-15 18:11:20-- https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf
Resolving fonts.gstatic.com (fonts.gstatic.com)... 142.250.199.163, 2404:6800:4002:81b::2003
Connecting to fonts.gstatic.com (fonts.gstatic.com)|142.250.199.163|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 324820 (317K) [font/ttf]
Saving to: ‘UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf’
UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2bo 100%[=================================================================>] 317.21K 1.22MB/s in 0.3s
2025-05-15 18:11:21 (1.22 MB/s) - ‘UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf’ saved [324820/324820] It appears that the font itself also available. Why Next.js failing to build? There's no proxy / VPN in the machine. FYI: |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue so i clear my browser cache and build again and it's worked fine. |
Beta Was this translation helpful? Give feedback.
-
Here's what worked for me:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Error [NextFontError]: Failed to fetch
Inter
from Google Fonts.Beta Was this translation helpful? Give feedback.
All reactions