Closed
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: Ubuntu 20.04.0 LTS Fri Jan 20 2023 09:56:57 GMT+0000 (Greenwich Mean Time)
Binaries:
Node: 16.14.2
npm: 7.17.0
Yarn: 1.22.19
pnpm: 7.13.6
Relevant packages:
next: 13.1.3
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
Font optimization (@next/font)
Link to the code that reproduces this issue
https://stackblitz.com/edit/nextjs-qcjltu?file=app%2Fpage.js,package.json
To Reproduce
To reproduce, run npm run build
.
Describe the Bug
Font input is
import { Noto_Sans_JP } from '@next/font/google';
const notoSansJapanese = Noto_Sans_JP({
weight: '400',
preload: false,
});
results in
Failed to compile.
app/page.js
`@next/font` error:
Failed to fetch `Noto Sans JP` from Google Fonts.
Possibly related to #44594
and 5f2c9d0
Expected Behavior
Compiles successfully.