Error 'Failed to fetch `Noto Sans JP` from Google Fonts.'
Problem
Verify canary release - [X] 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 [code block] results in [code block] Possibly related to https://github.com/vercel/next.js/pull/44594 and https://github.com/vercel/next.js/commit/5f2c9d0b301588cec60c3bfb6b36cb7ece787659 Expected Behavior Compiles successfully.
Error Output
error: Failed to fetch `Noto Sans JP` from Google Fonts.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Error 'Failed to fetch `Noto Sans JP` from Google Fonts.'
Removing the `.next` directory fixed the problem for me.
Trust Score
6 verifications
- 1
Removing the `.next` directory fixed the problem for me.
Removing the `.next` directory fixed the problem for me.
Validation
Resolved in vercel/next.js GitHub issue #45080. Community reactions: 20 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep