Next.js: The server crashes when getServerSideProps finishes executing

Created on 13 Jul 2020  路  4Comments  路  Source: vercel/next.js

Bug report

Describe the bug

I'm trying to use next/link to refer to a route that uses getServerSideProps for redirection, and the server crashes when getServerSideProps finishes executing.

To Reproduce

Repository: next.js-bug-redirect
Steps to reproduce the behavior:

  1. Go to http://localhost:3000
  2. Click on Home link
  3. See error

Expected behavior

Redirecting back to /about.

Screenshots

Screenshot 2020-07-13 at 14 36 53

System information

  • OS: macOS
  • Browser (if applies): chrome
  • Version of Next.js: 9.4.4
  • Version of Node.js: 14.2.0

Additional context

Tried to run it with next@canary, but it also crashes.

bug needs investigation

Most helpful comment

Related to #14890 and #12409 I believe

All 4 comments

Can you provide an example of how you are using Link in your project please?

Can you provide an example of how you are using Link in your project please?

Here is the example next.js-bug-redirect/pages/about.js

Related to #14890 and #12409 I believe

This issue still exists with 9.5.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

knipferrc picture knipferrc  路  3Comments

swrdfish picture swrdfish  路  3Comments

flybayer picture flybayer  路  3Comments

irrigator picture irrigator  路  3Comments