Next.js: 404 on Link

Created on 1 Jan 2017  路  9Comments  路  Source: vercel/next.js

Hi,
Since beta 7 (beta 6 build didn't work at all for me) I have a message in chrome devtools saying:

Error: Failed to load JSON for /_next/pages/connexion
    at XMLHttpRequest.xhr.onload (router.js?23b135f:602)

while going navigating to /connexion works as expected. Any clue on which change could have break the old implementation and how is my code supposed to be changed ?
The result is the same using 'next/link' or 'next/prefetch'.

Thank you and happy new year to all of you.

bug

All 9 comments

@havenS is there anyway we could have a sample app?

Here it is :
https://github.com/havenS/sample-next-404

The <Link /> to /connexion has a 404 while accessing http://localhost/connexion work as expected.

Thank you

This is happening for pages in sub directories. I'm working on a fix.

This is what I figured out with the / Link working.

Nice, I'll try it out as soon as it's been merged.

@nkzawa I tried it seems like not working.
I'll check more.

@arunoda #599 solves it for me

Thank you very much @arunoda and @nkzawa

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flybayer picture flybayer  路  3Comments

pie6k picture pie6k  路  3Comments

havefive picture havefive  路  3Comments

rauchg picture rauchg  路  3Comments

renatorib picture renatorib  路  3Comments