Results 2 comments of Lisandro

Same happent here, also I couldn't run my project as I was getting "Cannot read property 'pathname' of undefined" `location` `props` is only available in top-level components (pages). So if...

I solved this in a very rustic and not recommended way, but if you are using a layout file that is imported in all of your pages, include: `React.useEffect(() =>...