Remix vite Built completed but deployment stuck on heroku

Topic summary

A Remix Vite build process completes successfully but hangs during Heroku deployment, preventing the app from deploying. The build finishes with “built in X.XXs” but the process never exits.

Key Details:

  • Issue began around November 12th across multiple deployments
  • Affects both Heroku and Google Cloud Build environments
  • Build completes locally and in containers but deployment stalls
  • Error involves missing app/build/client/.vite/manifest.json file during SSR build step

Attempted Solutions:

  • Users implemented a Stack Overflow workaround adding process.exit(0) to the Vite plugin’s closeBundle() function
  • This causes new issue: process exits before manifest files generate
  • One user added 10-second setTimeout() before process.exit(0) as temporary fix, though UI assets don’t load properly afterward

Current Status:

  • Some users report builds suddenly working again without changes
  • Vite recently pushed a fix ~15 minutes ago (per GitHub)
  • One user reports Heroku identified it as a Node.js issue in the Linux kernel
  • Issue remains unresolved for some deployments; investigation ongoing
Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Thanks @KarinaHTV - good to know.

Have just tested this and the original issue still persists with Heroku my side.

When removing the setTimeout from the workaround, the build no longer fails but the assets do not get built so anything using UI elements does not load within the app for me.

So, for now, have reverted back to my solution above!

1 Like