Skip to content

Next.js 16.2 build failed: Failed to fetch Google Fonts #91653

@pawelhoros

Description

@pawelhoros

Link to the code that reproduces this issue

https://github.com/pawelhoros/next-16.2-google-fonts

To Reproduce

Pull this repo, then npm run build.

`npm run build

build
next build

▲ Next.js 16.2.1-canary.1 (Turbopack)

Creating an optimized production build ...
Turbopack build encountered 2 warnings:
[next]/internal/font/google/geist_e193ce59.module.css
Error while requesting resource
There was an issue establishing a connection while requesting https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap

Import trace:
Server Component:
[next]/internal/font/google/geist_e193ce59.module.css
[next]/internal/font/google/geist_e193ce59.js
./app/layout.tsx

[next]/internal/font/google/geist_mono_b4d4e0d7.module.css
Error while requesting resource
There was an issue establishing a connection while requesting https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap

Import trace:
Server Component:
[next]/internal/font/google/geist_mono_b4d4e0d7.module.css
[next]/internal/font/google/geist_mono_b4d4e0d7.js
./app/layout.tsx

Build error occurred
Error: Turbopack build failed with 2 errors:
[next]/internal/font/google/geist_e193ce59.module.css
next/font: error:
Failed to fetch Geist from Google Fonts.

Import trace:
Server Component:
[next]/internal/font/google/geist_e193ce59.module.css
[next]/internal/font/google/geist_e193ce59.js
./app/layout.tsx

[next]/internal/font/google/geist_mono_b4d4e0d7.module.css
next/font: error:
Failed to fetch Geist Mono from Google Fonts.

Import trace:
Server Component:
[next]/internal/font/google/geist_mono_b4d4e0d7.module.css
[next]/internal/font/google/geist_mono_b4d4e0d7.js
./app/layout.tsx

at ignore-listed frames`

Switching back to 16.1.7 and everything works.

Current vs. Expected behavior

Should build with success.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.3.0: Wed Jan 28 20:56:42 PST 2026; root:xnu-12377.91.3~2/RELEASE_ARM64_T8142
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 24.14.0
  npm: 11.9.0
  Yarn: N/A
  pnpm: 10.32.1
Relevant Packages:
  next: 16.2.1-canary.1 // Latest available version is detected (16.2.1-canary.1).
  eslint-config-next: N/A
  react: 19.2.4
  react-dom: 19.2.4
  typescript: 5.9.3
Next.js Config:
  output: N/A

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

Not sure

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

next build (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions