Next.js Discord

Discord Forum

font error

Unanswered
Reddish carpenter ant posted this in #help-forum
Open in Discord
Reddish carpenter antOP
hi has anyone across this error before my code was working just fine but this error started to pop up recently

Build Error
Next.js (15.1.0) out of date (learn more)

Failed to compile
app/layout.tsx

An error occurred in next/font.

SyntaxError: Unexpected token '}'
at compileSourceTextModule (node:internal/modules/esm/utils:339:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:168:18)
at callTranslator (node:internal/modules/esm/loader:428:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:30)
at async link (node:internal/modules/esm/module_job:87:21)

5 Replies

Reddish carpenter antOP
did run the codemod as well which i found in the nextjs docs
but no luck
Did you try deleting the .next and node_modules folders and then try again?
Reddish carpenter antOP
yeah did all that turned out it was tailwind issues i messed up somewhere there
thanks for coming back tho preicate it