Next.js Discord

Discord Forum

Once I go to this page, I cannot navigate to any other pages

Unanswered
Tenterfield Terrier posted this in #help-forum
Open in Discord
Tenterfield TerrierOP
Hello, I have a client page where once I navigate to it, all of the links stop working. I have attached the code. There's no errors and builds fine, but this is obviously a huge problem. What do you think my issue is? Have you encountered this issue before?

41 Replies

English Lop
When you say links, I don't see any "links" in this file. I see a router refresh used when inputing in a form field, but nothing else.
Tenterfield TerrierOP
The links are in the layout.tsx
Basically the whole site stops working once I navigate to this page.
Besides the form within this page itself.
You can try it yourself
https://www.ryanhuang.io If you go here, you can click around
But once you go to the dashboard/profile page, everything stops working
@English Lop When you say links, I don't see any "links" in this file. I see a router refresh used when inputing in a form field, but nothing else.
Tenterfield TerrierOP
Let me know once you've tried it so you understand what the issue is.
English Lop
It works just fine for me.
Tenterfield TerrierOP
🤯
English Lop
Are you running it locally and seeing the issue? or in the deployed state?
Tenterfield TerrierOP
I realized once I log out it works
I am using NextAuth
The issue is in both
On the live one, I haven't added the logic where if the user is not logged in, it protects that page
But I am still left with the same issue; just to recreate the problem, we need to be logged in.
Do you mind testing it? (I will delete you from the db after)
English Lop
I am not sure what's going on without being able to dig around the codebase.
Tenterfield TerrierOP
What's your github? I can invite you to the codebase
English Lop
jeffbum
Tenterfield TerrierOP
Just invited
Try removing those OnClick events.
Tenterfield TerrierOP
I've removed all of them but still same issue
English Lop
Is that deployed?
Tenterfield TerrierOP
I am deploying a new version now...I added logic to prepopulate the data and now that bug is gone 😳
But I am still perplexed what happened
The new version is up now with the bug resolved.
Thanks Jeff for your time on this! altho still puzzling what happened
English Lop
Yeah, I'm not quite sure what is happening. Apologies no easy answer came to me.
If you don't mind, please go ahead and delete my user from the db.
Tenterfield TerrierOP
Removed.
No problem, and you might just have been the lucky person I needed to talk to
I am not superstitious per say but I've def ran into technical issues before and when I talk to certain ppl somehow they get resolved on their own, after I've exhausted a bunch of time banging my head on a keyboard
Thanks again for taking the time
English Lop
It happens. No worries.
Tenterfield TerrierOP
I've also removed you from the Github repo
And followed you on Github 🙂