[Bug] Stale build artifact served despite recent refactors - build cache or process mismatch

Resolved 💬 3 comments Opened Jan 17, 2026 by schwabencraft Closed Jan 20, 2026

Bug Description
I have a critical issue where the app is serving a stale version from 15.02.2026 despite significant refactors made yesterday. I suspect a build caching, environment, or entry-point mismatch.

Please stop editing feature code and perform the following investigative steps one by one:

  1. FILE SYSTEM CHECK:
  • List the files in the current directory to confirm we are in the correct root.
  • Cat the main entry point file (e.g., index.js, App.tsx, or main.py) and confirm it contains the new changes (look for a specific recent refactor keyword).
  • If the file on disk is correct, the issue is downstream (build/serve). If the file is old, I am in the wrong directory or git branch.
  1. BUILD ARTIFACT CHECK:
  • Identify the build tool (Vite, Webpack, Next.js, etc.).
  • locate the build output directory (e.g., /dist, /.next, /build).
  • Delete this folder entirely to force a clean rebuild.
  1. PROCESS CHECK:
  • Check if an old server process is still running in the background and holding onto the port.
  • Kill all running node/python processes related to this app.
  1. CACHE CLEAR:
  • If using Replit/Nix: Check if there is a stale cache.
  • If using a package manager (npm/yarn/pnpm): Run the clean command (e.g., npm run clean if it exists, or manually delete node_modules/.cache).
  1. EXECUTION:
  • Run the build command explicitly.
  • Start the server again with the 'force' or 'no-cache' flag if available.
  • Print the exact localhost URL and port being used.

Goal: Prove that the server is running the code that actually exists on the disk right now.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.11
  • Feedback ID: 60fa43b3-3e7b-4053-8a91-d935183739b8

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:582)\n    at AW (/$bunfs/root/claude:11:34695)\n    at readFileSync (/$bunfs/root/claude:12:541)\n    at ox_ (/$bunfs/root/claude:4568:27043)\n    at call (/$bunfs/root/claude:1503:945)\n    at call (/$bunfs/root/claude:1499:6491)\n    at pd7 (/$bunfs/root/claude:2642:19684)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-17T07:19:44.177Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗