Error: Route did not complete loading: /projects

See original GitHub issue

What version of Next.js are you using?

10.0.5

What version of Node.js are you using?

14.15.0

What browser are you using?

Chrome

What operating system are you using?

Windows 10

How are you deploying your application?

Vercel

Describe the Bug

I am trying to build a simple route for my portfolio. The route is ‘/projects’. I’ve added a projects.js file in the pages directory with the logical code and when I use next/link for client side transition, I get an error: Route did not complete loading: “projects”. When I use regular anchor tag for routing, there is no issue.

Expected Behavior

It should change the route to the destined page without any error.

To Reproduce

import styles from '../styles/Home.module.css'
import Link from 'next/link'

export default function Footer() {
    return (
        <>
            <div className={styles.link}>
                <a href="https://github.com/devdaksh" target="__blank">github</a>
                <a href="https://twitter.com/dawksh" target="__blank">twitter</a>
                <a href="https://devdaksh.hashnode.dev" target="__blank">blogs</a>
                <a href="mailto:akshd@outlook.com">email</a>
                <Link href="/projects" >
                    <a>projects</a>
                </Link>
            </div>
        </>
    )
}

Screenshot (130)

This is a screenshot of the error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
donparkcommented, Jan 28, 2021

Seeing the same on macOS with:

  • development build
  • production build
  • on page with <Link> tag
  • on page routed to via <Link> tag.

Same 10.0.5 version of Next.js running on Node 14.15.4.

I also tested previous minor versions and found that 10.0.1 is the last version that does not throw this error. 10.0.0 is fine also.

1reaction
ocodistacommented, May 6, 2021

I’m also seeing this error on next@10.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Route did not complete loading on Next.js
I am trying to build a simple route for my personal blog but the chrome developer tools raise an error saying that Error:...
Read more >
Error: Route Did Not Complete Loading On Next.Js - ADocLib
I've added a projects. js file in the pages directory with the logical code and when I use next/link for client side transition,...
Read more >
Using Angular routes in a single-page application
This tutorial describes how to build a single-page application, SPA that uses multiple Angular routes. In a Single Page Application (SPA), all of...
Read more >
What's New in Next.js 13 - AppSignal Blog
Then when the data fetching is complete, new info will be streamed to the page in place of the previously shown loading state....
Read more >
Understanding Next.js routeChangeStart and router events
When a route changes completely; When the browser history is about to change; When a route encounters an error while changing. Let's explore ......
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