17 days ago
I'm having the following problem to deploy a Next.js app. The biggest problem is that there is no really an error.
npm warn config production Use --omit=dev instead.
> frontend@0.1.0 build
> next build
▲ Next.js 16.1.1 (Turbopack)
Creating an optimized production build ...
> Build error occurred
VzL21vZHVsZS1ub3QtZm91bmQKCgouL3NyYy9jb21wb25lbnRzL3VpL2...
Attachments
3 Replies
17 days ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 17 days ago
17 days ago
did you commit these src/lib/utils and/or src/lib/auth files?
17 days ago
Everything has been committed and I'm using relative paths. How do you see the "src/lib/utils" files? I don't find that in the error message
16 days ago
Hey 
Based on the build log, the errors are coming from these files:
src/components/ui/input.tsxsrc/components/ui/label.tsxsrc/components/ui/separator.tsxsrc/components/ui/table.tsxsrc/app/page.tsxsrc/components/AppHeader.tsx
All of them are importing from lib/utils or lib/auth, so I would start by checking those imports carefully.
Make sure:
utilsandauthare correctly imported in each of those files.The relative path (
../or../../) is correct based on the file location.The file names match exactly, including lowercase/uppercase (Linux is case-sensitive, so
Utils.tsis different fromutils.ts).
I’d review those files one by one and confirm the imports match the actual folder structure exactly. That should point you in the right direction 
Status changed to Open brody • 16 days ago