Debugging frontend crash and handling circular dependency

Leader 1 6 49
calendar_todayschedule1 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.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

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

Dharanidharan - Feb 9

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

Karol Modelskiverified - 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

5 Web Dev Pitfalls That Are Silently Killing Your Projects (With Real Fixes)

Dharanidharan - Mar 3
chevron_left
3.2k Points56 Badges
Development Teamtopstar-ai.github.io
36Posts
43Comments
53Connections
AI Automation and Agents Developer building intelligent systems and modern web applications. Passion... Show more

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!