Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange issue in production build, Links occasionally stop working. #29805

Closed
fennadew opened this issue Oct 11, 2021 · 3 comments
Closed

Strange issue in production build, Links occasionally stop working. #29805

fennadew opened this issue Oct 11, 2021 · 3 comments
Labels
bug Issue was opened via the bug report template.

Comments

@fennadew
Copy link

What version of Next.js are you using?

11.1.0

What version of Node.js are you using?

v14.17.3

What browser are you using?

All browsers

What operating system are you using?

macOS

How are you deploying your application?

Vercel

Describe the Bug

On production, links occasionally stop working. Most of the time it's after a new deployment, but it happens randomly. After a refresh, they mostly work again. I've figured that the problem lies with the router. It never finished the route change.

I made two screen recordings: one of the normal behaviour and one when the links are not working anymore. In my console I am listening to routeChangeError while trying to navigate with the router.push. Nothing is happening, and if I try to navigate to another route, you can see that the previous route was cancelled.

working-test.mp4
not-working-test.mp4

I found more people are experiencing this: https://www.reddit.com/r/nextjs/comments/o16ep3/strange_issue_in_production_build_links/

Expected Behavior

The route always navigates.

To Reproduce

It happens randomly so it's hard to reproduce.

@fennadew fennadew added the bug Issue was opened via the bug report template. label Oct 11, 2021
@ijjk
Copy link
Member

ijjk commented Oct 11, 2021

Hi, this sounds related to #28797 and #27783 which has a patch applied in v11.1.3-canary.14 of Next.js, please update to at least that version and give it a try!

@ijjk
Copy link
Member

ijjk commented Oct 28, 2021

Going to close this as this should be resolved, please respond with additional info if you are still seeing this in versions above v11.1.3-canary.14

@ijjk ijjk closed this as completed Oct 28, 2021
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants