Page not found error in other pages

@prani ChatGPT’s answer is correct, it’s addressed in the documentation:

See:
https://docs.netlify.com/configure-builds/javascript-spas/

Avoid 404s for SPAs

If your project is a single page app (SPA) that uses the history pushState method to get clean URLs, you must add a rewrite rule to serve the index.html file no matter what URL the browser requests.

The rewrite rule that you need to add is shown here:
https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps

_redirects

/*  /index.html  200

If you have other issues with “Page Not Found” you can try this support guide:
https://answers.netlify.com/t/support-guide-i-ve-deployed-my-site-but-i-still-see-page-not-found/125