question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

next/link false 404

See original GitHub issue

What version of Next.js are you using?

10.2.0

What version of Node.js are you using?

12.X.X

What browser are you using?

Safari, Chrome, Firefox

What operating system are you using?

macOS

How are you deploying your application?

Vercel

Describe the Bug

Since Nextjs upgrade, clicking on a <Link /> component targeting a getStaticPaths...fallback: 'blocking' page generates a 404. Direct access to the page or refreshing the page seems to be working (not consistent behavior though). ezgif com-gif-maker

Expected Behavior

User should access the page if found.

To Reproduce

Clone the following repo: https://github.com/dimroth/next-broken-link-repro and push to Vercel.

Try clicking on a link from /articles page. It should display a 404 (perhaps not systematically). If you try to directly access the /articles/one, /articles/two or /articles/three pages, it should work after a few refreshes if not on the first.

Note, switching back to next@10.0.7 solves the issue.

Note: you won’t reproduce in vercel dev mode, needs to be pushed on a production environment.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ijjkcommented, May 5, 2021

Hi, we’ve landed a fix for this which should be available soon, will update here when it is

0reactions
balazsorban44commented, Jan 28, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js 404 error for all preloaded links - Stack Overflow
I'm new to next.js and as a first step, before I start developing the actual app, I'm following the docs to learn the...
Read more >
prefetch in combination with i18n and next/link locale:false ...
Bug report Describe the bug Use of i18n and defaultLocale returns in prefetched links in the defaultLocale to be 404 not found.
Read more >
Next link from CQL Search REST API throwing error 404
When making a call to next link retrieved in response of API , 404 is returned API used -
Read more >
next.config.js: Redirects
Redirects allow you to redirect an incoming request path to a different destination path. To use Redirects you can use the redirects key...
Read more >
Preview to prod working, but 404 in real production
autoAddCss = false; import { SessionProvider } from "next-auth/react"; ... import Link from "next/link"; import { PrismicProvider } from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found