Run production build, fix compile/bundle errors, repeat until exit 0.
Start the "Build Until Green" loop. - Goal: Production build succeeds with zero errors. - Max iterations: 10 - Between iterations run: `npm run build` - Exit when: build command exits 0 with no errors. Steps: 1. Run the production build 2. If it succeeds, stop — exit condition met 3. If it fails, read the error output carefully 4. Identify the first error (not warnings — errors only) 5. Fix the root cause with a minimal change 6. Run the build again to verify the fix and check for remaining errors 7. Repeat until the build is clean Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.
Como funciona