When trying to publish/deploy on vercel and/or build locally after downloading I keep getting the following error. Any thoughts on how to proceed? It seems like a dependencies issue, possibly related to accompanying font folders needed, but which don't appear to be included in the build.
For my local build, I get:
Build Error
Failed to compile
Next.js (14.2.30) is outdated (learn more)
app/layout.tsx
Module not found: Can't resolve './fonts/GeistMonoVF.woff2' https://nextjs.org/docs/messages/module-not-found Import trace for requested module:
./app/layout.tsx
From the vercel log, I get:
12:28:59 Running "bun run build" 12:28:59 $ next build 12:29:00 ▲ Next.js 14.2.16 12:29:00 12:29:00 Creating an optimized production build ... 12:29:07 Failed to compile. 12:29:07 12:29:07 app/layout.tsx 12:29:07 Module not found: Can't resolve './fonts/GeistMonoVF.woff2' 12:29:07 12:29:07 https://nextjs.org/docs/messages/module-not-found 12:29:07 12:29:07 Import trace for requested module: 12:29:07 ./app/layout.tsx 12:29:07 12:29:07 app/layout.tsx 12:29:07 Module not found: Can't resolve './fonts/GeistVF.woff2' 12:29:07 12:29:07 https://nextjs.org/docs/messages/module-not-found 12:29:07 12:29:07 Import trace for requested module: 12:29:07 ./app/layout.tsx 12:29:07 12:29:07 12:29:07
Build failed because of webpack errors 12:29:07 error: script "build" exited with code 1 12:29:07 Error: Command "bun run build" exited with 1 12:29:07