Next.js Discord

Discord Forum

Why is the compiler not registering the '@/fonts' path?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I'm trying to add a path to my compiler, but I keep getting an error from the TS compiler. I'm going through the [NextJS font component](https://nextjs.org/docs/app/api-reference/components/font) and I still am having issues.

The error I'm getting is Cannot find module '@/fonts' or its corresponding type declarations. whenever I import my font.

0 Replies