Skip to content

chore: add missing app/ui/fonts.ts #1074

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FNK-bot
Copy link

@FNK-bot FNK-bot commented Jun 27, 2025

What’s Changed

This patch adds the missing app/ui/fonts.ts file that the dashboard tutorial’s starter code references but didn’t include. It defines two Google-hosted fonts via Next.js’s built-in next/font/google API:

  • inter: system font with the latin subset
  • lusitana: display font (weights 400, 700) with the latin subset

By exporting these from app/ui/fonts.ts, components like AcmeLogo can now import them via @/app/ui/fonts without import errors.


Why

When following the official tutorial, running npm run dev yields:
Error: Cannot find module '@/app/ui/fonts'
because the fonts.ts file wasn’t checked into the starter repo. Adding it ensures the tutorial code actually runs out of the box.

Copy link

vercel bot commented Jun 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-learn-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 7:14am
next-seo-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 7:14am

Copy link

vercel bot commented Jun 27, 2025

@FNK-bot is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@FNK-bot
Copy link
Author

FNK-bot commented Jun 27, 2025

i added it as an issue #1073

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

Successfully merging this pull request may close these issues.

1 participant