I am facing a puzzling issue with my Next JS app not functioning properly on initial load on mobile for certain pages.
Here is the error message I am encountering:
TypeError: Cannot read property 'prefix' of undefined
at value (e58ad660f61adae3bef60024de92d3bccb597bc6.ac485a8c6af9f1bd0a28.js:1)
at Array.reduce (<anonymous>)
at n.value (e58ad660f61adae3bef60024de92d3bccb597bc6.ac485a8c6af9f1bd0a28.js:1)
at Module.Zisd (my-account-c12932b172283a18c089.js:1)
at l (webpack-50bee04d1dc61f8adf5b.js:1)
at my-account-c12932b172283a18c089.js:1
at 9f9486d2dee4d90f1a0c817d9cd505415df353ca.95446c2205ebcde0dc47.js:1
I apologize if this seems like jargon, but it's all the information I have. I am using Fortawesome and came across this thread, although I believe I am correctly importing and utilizing the icons. The odd part is that when I attempt to navigate to a page link, it throws a severe error. However, upon refreshing the page, it functions normally again. What could be causing this behavior?
Do you have any suggestions on how to resolve this issue or perhaps improve my debugging process? Thank you