I have deployed my test frontity app to vercel. I am having issue on Iphone and Ipad when accessing to my website. It does not render components and shows blank on those devices but works fine with my laptop. Event it works on Responsive Design mode on laptop browser. What might be the issue? Or how can i debug the issue on those devices? Please help me to resolve the issue.
Thanks for your reply.
I have tested those on mentioned topics. Unfortunately, it did not help me. I also tried via localhost without vercel. I made my app public with ngrok and tried with iphone and ipad. It show page for a second and goes to blank again. I think my issue may not be related to vercel at all. But it works fine with android, and computer.
I troubleshooted components and found out that one npm package is the reason for blank page. Whenever i render post_date with dateformat package like below, it shows blank page on IOS devices.
dateFormat(blog.post_date, "dd mmm yyyy")
This sounds very weird to me but I hope it helps somebody in the future.
Glad you’ve been able to resolve it! Just wanted to chime in to say that there are some great modern libraries for handling dates in JS like https://github.com/iamkun/dayjs/ or https://date-fns.org/ (I’ve happily used the first one)
It looks like the dateformat package is not really maintained anymore!