Dev Tools · 6h ago
Why Google Translate Crashes React Apps and How to Fix It
Google Translate's DOM mutations can cause React apps to crash with 'NotFoundError' when React's internal state mismatches the actual DOM. The translation tool wraps text nodes in new elements, moving nodes without React's knowledge. Developers can fix this by disabling translation on critical elements or using error boundaries.
Meridian48 take
This is a classic collision between two systems that assume sole ownership of the DOM, highlighting the brittleness of client-side rendering under browser extensions.
Read the full reporting
Why Google Translate Crashes Your React App (and How to Fix It) →
DEV Community
reactgoogle-translate