Debugging frontend crash and handling circular dependency

●1 ●22 ●77
calendar_today • schedule1 min read

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.

Want more #webdev & #frontend deep dives?

Join 6,134+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

When One Python Process Fails, You Need to See All of Them

Tom Smithverified - Nov 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

3.5 best practices on how to prevent debugging

Codeac.io - Dec 18, 2025

How to save time while debugging

Codeac.io - Dec 11, 2025
chevron_left
3.5k Points • 100 Badges
Development Team • topstar-ai-github-io.vercel.app
39Posts
45Comments
77Connections
AI Automation and Agents Developer building intelligent systems and modern web applications. Passion... Show more

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!