BigBinary
Read post

Debugging frontend crash and handling circular dependency

A production crash in NeetoCRM was caused by a circular dependency between commons/constants.js and commons/utils.jsx. In development, Vite's native ES module evaluation order masked the issue, but esbuild's production bundling exposed it by placing constants.js code before createColumn was initialized. The fix involved moving createColumn into a standalone module to break the cycle. The post also covers two related findings: how session replay tools like rrweb wrap console methods and mislead DevTools attribution, and how Honeybadger missed the crash entirely because it was initialized inside the React tree rather than before the App chunk loaded. The solution moves Honeybadger.configure() to application.js before mount() runs, ensuring startup failures are captured.

    #webdev#javascript#react#vite
Jun 11•6m read time•From bigbinary.com
Post cover image
Table of contents
Back to the errorThe fixHow to replicate this behavior in the development environmentWhy Honeybadger didn't catch this errorThe Honeybadger fix
4.1K Impressions
BigBinary's image
BigBinary

BigBinary is a resource for Ruby on Rails developers, offering tutorials, articles, and best practic...

14 Followers

•

194 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard