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 loading a result for the page query in "/404.html". Query was not run and Page not found /404.html #15724
Comments
Note that running |
So, I installed each of the starters and the only starter that displays the 404 error in the terminal is the hello-world starter. The 404 message appears in each of the default theme starters including the new workspace theme starter. |
As per @jlengstorf , we need to have a 404.js in our site currently as 404 generation is not supported as of now. |
I'm also getting this (or a very similar) error on
Running |
Could this be related to #15615? |
Though everything works as it should, I'm getting the same error when navigating pages I'm routing with Error loading a result for the page query in "/authentication/navigate". Query was not run and no cached result was found.
Page not found /authentication/navigate
Error loading a result for the page query in "/authentication/login". Query was not run and no cached result was found.
Page not found /authentication/login gatsby-config.js: ...
{
resolve: `gatsby-plugin-create-client-paths`,
options: {
prefixes: [`/confirm-email/*`, `/authentication/*`],
},
... My ...
const AuthenticationIndex = () => {
return (
<Layout>
<div className="authentication-container">
<Router>
<Navigator path="authentication/navigate" />
<AuthenticationContainer path="authentication" />
<LoginFormContainer path="authentication/login" />
<RegistrationFormContainer path="authentication/signup" />
<PasswordResetFormContainer path="authentication/password-reset" />
<PasswordResetConfirmFormContainer path="authentication/password-reset/confirm/:uid/:token" />
</Router>
</div>
</Layout>
)
}
... |
Same issue with client-only paths ('/app/*') using gatsby-plugin-create-client-paths@2.1.3 |
I also have this printed out with the same setup as @kogal Everything seems to work OK, but those printouts bother me |
Successfully published:
|
For me the error persists. Running
As mentioned above, if I delete the cache, |
Also having an issue. Only thing that has helped is by clearing the cache as @janosh mentioned |
This this might be a workaround for a bug in Gatsby: gatsbyjs/gatsby#15724
Any update on this? With the latest gatsby version I still have this issue, and it affects |
Not sure if anyone is still monitoring this thread, but I am occasionally getting this same (similar, but different) error. As others have said, stopping Did anyone ever find a (more perm) solution for this situation? edit nvm, I see that this issue is closed (after I posted), I'll see if I can find a more active/recent ticket). |
This this might be a workaround for a bug in Gatsby: gatsbyjs/gatsby#15724
Error: ENOENT: no such file or directory, stat 'D:\protfolio\kishan-portfolio\public\404.html' Please help me, how can I solve this issue |
hit the same issue here....... anyone has a solution? |
2 similar comments
hit the same issue here....... anyone has a solution? |
hit the same issue here....... anyone has a solution? |
I have the same issue initially when the I've noticed that the |
I am getting this now too - never noticed before. Just updated to |
Hey peepz, |
my problem is not solve in running |
Any updates on this? Any ideas are greatly appreciated. EDIT: I managed to fix it. In my case it was a plugin breaking the 404 page. ( If you experience this error, try removing the plugins you think that might be causing this issue. |
If anyone runs into this problem, make sure the Gatbsy server isn't running in a different terminal window. That's what the problem was in my case (March 2023). |
Description
When using
gatsby develop
with a theme, the following error is printed in the terminal after a page is loaded in the browser:Steps to reproduce
gatsby new my-blog gatsbyjs/gatsby-starter-blog-theme
cd my-blog
gatsby develop
http://localhost:8000
There's also a repro available at https://github.com/polishedwp/gatsby-starter-theme-eclectic courtesy of @polishedwp
Expected result
The Error loading a result for the page query... message should not appear in the terminal.
Actual result
The message appears.
Environment
The text was updated successfully, but these errors were encountered: