React Router: Cannot read property ‘pathname’ of undefined
I got the above error message and it was extremely cryptic. I tried the other solutions mentioned and it didn’t work. Turns out I accidentally forgot to include the to prop in one of the <Link /> components. Even if the <Link /> does not require a to prop, you simply just add and write … Read more