next.js: Dev Server Navigation broken

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Navigating to another non-built page should navigate after page has built successfully.

Current Behavior

Navigating to another non-built page reloads the page after intended page has built successfully. Clicking to navigate again after the intended page has been built, correctly routes to the page.

Context

Just more of a pain in development because we aren’t sure that it isn’t happening in a production build without double checking every time.

I am running a custom express server with custom document and app.

Your Environment

Tech Version
next v6
node v9.11.1
OS Windows 10
browser Chrome 66
etc

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 4
  • Comments: 27 (18 by maintainers)

Most upvoted comments

New canary version that also filters out _document is on the way: https://travis-ci.org/zeit/next.js

@madhums expecting your issue will be fixed by https://github.com/zeit/next.js/pull/4497, @alexindigo made a minimal example in which it still failed.

Thanks for the extensive debugging from your side 😌 It wasn’t the easiest issue to find 👍