Next.js Discord

Discord Forum

No debug information when running "next build --debug"

Unanswered
Siberian posted this in #help-forum
Open in Discord
SiberianOP
I'm going insane, I have added checks to all the divisons in the codebase for 0 values. This error doesn't happen when running the app in dev mode.

The build is created successfully, but fails at the last step before showing any other information.

I'm using app router, no middleware.

next build --no-lint --debug

 ⚠ Linting is disabled.
   ▲ Next.js 15.2.1
   - Environments: .env.local, .env
   - Experiments (use with caution):
     · clientTraceMetadata

   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Checking validity of types    
 ✓ Collecting page data    
[RangeError: Division by zero] // What am I supposed to do with this much information??
 ELIFECYCLE  Command failed with exit code 1.

0 Replies