-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Route did not complete loading: /projects #21543
Comments
Seeing the same on macOS with:
Same I also tested previous minor versions and found that |
Same error here. +1 |
I'm facing the same error too on my project. The official next.js website also has this issue if you open chrome developer tools and click one of its routes a couple of times. |
I am also getting this error. I am not far off the official tutorials. I am pretty sure I was getting it while following the site basic tutorial. |
This error seems to be originated from here, which was added in #19006 (and was released in v10.0.2). I'm not entirely sure if this code itself is what's causing the error to be thrown, I would assume not since we would have noticed it earlier on, so something else seems to be causing the In other words, something is causing |
IMO this is not a real issue, but rather annoying if you've enabled |
Yep, pause on exception triggers it |
Chrome has a similar 'ghost' exception bug with I'd treat this as a real bug because:
My advice is to make |
I agree, you could look at it as a dev issue, even though it does not have impact on production sites, and I totally agree about (3), unnecessary issue noise. |
We are experiencing this issue in our automated tests, it's failing our suite. I was able to reproduce this error without having "pause on exception" turned on. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
In the current implementation, `idleTimeout` will always be thrown even if it didn't time out and `Promise.race` was resolved. This causes the error `Error: Route did not complete loading` on every route transition and Chrome Devtools will pause code execution if you have "Pause on exceptions" enabled. This PR adds `resolvePromiseWithTimeout` which does the same thing as `Promise.race` and `idleTimeout`, but it cancels the rejection when it resolves successfully, in which case the error won't be thrown. Fixes #21543.
I'm also seeing this error on [email protected] |
The exception is annoying and wastes developer's time. It would be lovely to have it fixed, rather than having to ignore it. Here is [email protected] |
Please open a new issue with a complete reproduction and we'll have a look! |
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. |
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
This is a screenshot of the error
The text was updated successfully, but these errors were encountered: