Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build due to "fetch font error" #62

Closed
Ding-Fan opened this issue Feb 7, 2023 · 1 comment
Closed

Cannot build due to "fetch font error" #62

Ding-Fan opened this issue Feb 7, 2023 · 1 comment

Comments

@Ding-Fan
Copy link

Ding-Fan commented Feb 7, 2023

I ran pnpm install and duplicated the .env.example as .env.local , then got error at pnpm build.

Looks like same issue vercel/next.js#45080

www:build: Generated 30 documents in .contentlayer
www:build: info  - Creating an optimized production build...
next-template:build: Failed to compile.
next-template:build:
next-template:build: pages/_app.tsx
next-template:build: `@next/font` error:
next-template:build: Failed to fetch `Inter` from Google Fonts.
next-template:build:
next-template:build:
next-template:build: > Build failed because of webpack errors
next-template:build:  ELIFECYCLE  Command failed with exit code 1.
next-template:build: ERROR: command finished with error: command (/home/linux/Github/ui/templates/next-template) pnpm run build exited (1)
command (/home/linux/Github/ui/templates/next-template) pnpm run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    2m16.794s

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.
@Ding-Fan
Copy link
Author

Ding-Fan commented Feb 7, 2023

I manaully deleted apps/www/.contentlayer apps/www/.next , ran pnpm dev again, it finally works.

@Ding-Fan Ding-Fan closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant