skip to Main Content

Reactjs – Next.js unable to find font file

I'm trying to use next.js localFont, like so: const Eina = localFont({ src: "../public/fonts/eina01.ttf", }); However, no matter where i place the eina file/whatever file path I try, it always gives me: Module not found: Can't resolve '@next/font/local/target.css?{"path":"pages/_app.js","import":"","arguments":[{"src":"../public/fonts/eina01.ttf"}],"variableName":"Eina"}' its currently…

VIEW QUESTION
Back To Top
Search