ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
253 stars 106 forks source link

Fix unhandled exception on TON Website #465

Closed guptasiddharth closed 4 months ago

guptasiddharth commented 4 months ago

Summary

An unhandled exception is breaking the blog.ton.org subdomain on macOS browsers.

Bounty Context

Why it's Important? Resolving this issue is highly important, as browser incompatibility on a key platform like macOS can heavily impede user interactions. It can also assist in maintaining TON's online integrity and reliability for all users.

Problem showcase The TON website's subdomain is experiencing an unhandled exception error which results in a broken layout on both Chrome and Safari browsers on macOS. However, it works fine on both Android and iOS mobile browsers. The broken layout might be causing inconveniences to macOS users, adversely affecting the website's usability.

Potential Solution This glitch can be mitigated by updating Next.js and related packages, verifying the canary release, and executing the browser's window object accessing code inside the useEffect() Hook. These potential solutions could remedy the slow operation, Diffbot service timeout, route rendering issues, and premature Swiper rendering that might be causing this problem.

References

Screenshot of the issue: https://prnt.sc/U015CHwempmQ

REWARD

🪄 Created with the help of TON Bounties Creator Bot.