Next.js Discord

Discord Forum

Font loader problem after using ESLint

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Avatar
Masai LionOP
Hey, my project was going well, and after I ran ESLint, I now get this issue when I run my app, do you know the reason ?

  × Font loaders must be called and assigned to a const in the module scope
 11 │  outfitNormal = Outfit({
    ·                 ──────
 12 │     subsets: ['latin'],
 13 │     weight: '400',
 13 │ });

    ╰────
Image

0 Replies