I've been trying to upload my resume as a pdf in react for at least 6 hours now.
Why is this not a more common thing to do
I've hit so many errors at this point that I don't even know where to begin solving them. Is my version of Next.js wrong? Syntax? Did I install the wrong package? Too many variables which could be causing the issue of no pdf showing up!
Persevering
Pushing through until you get to the end is not easy. It's currently 2:18AM and I've reached the point where I can feel my eyeballs rolling around in their sockets (a.k.a., I'm hideously tired), so I think I'm going to have to commit the many other updates that I've achieved thus farāeven though I'm not even close to being content with the overall state of this siteāand contemplate returning to the great mystery of how to create a pdf viewer.
Conclusion
Although it seems so simple, like something that you could code just with a few lines, this has been a nightmare for me. But like with almost every challenge I've ever encountered in CS, it's puzzles like these that make working interesting and worthwhile, and I always feel smarter once I've conquered the issue at hand, which is a huge incentive for me to keep fighting until I get there! This may seem like a wonky system of motivation, but if it's not broke, don't fix it.
(But this pdf thing is definitely broke, so I'll be back.)