question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error: This page template could not be found and a 404 template could not be found to fall back on. This means something is terribly wrong and you should probably file an issue!"

See original GitHub issue

Are you reporting a bug?

Yes; I got the following error:

Error: This page template could not be found and a 404 template could not be found to fall back on. This means something is terribly wrong and you should probably file an issue!

Obedient as I am, here I’m filing the issue. Unfortunately, I’m not quite sure what data is relevant.

Environment

  1. react-static -V:
  2. node -v:
  3. npm -v:
  4. Operating system:
  5. Browser and version (if relevant):

Steps to Reproduce the problem

Base your steps off of any freshly installed react-static template!

Unfortunately, I haven’t been able to reproduce this in a freshly installed template. Rather, I encountered this while trying to convert an existing React-Static project. I tried both setting up my 404 page for the path '404', as well as moving it into the /pages dir (which does not yet contain any other pages). Neither fixed it.

Expected Behavior

…not to get this error? If there’s any more relevant information for me to provide, let me know.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
tannerlinsleycommented, Dec 21, 2018

Alright, just did a patch release to handle an unhandled edge case where 404 templates were sometimes not loaded correctly. Can you upgrade and test again?

2reactions
tannerlinsleycommented, Dec 21, 2018

Yeah, we’re seeing it too (now being caused by a different bug). We’re working on a fix. Thanks for your patience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error: This page template could not be found and a 404 ...
"Error: This page template could not be found and a 404 template could not be found to fall back on. This means something...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
How to Fix WordPress 404 Not Found Error [8 Easy Solutions]
A 404 "Not Found" error occurs when your browser cannot find the requested page. This blog shares the easy fixes to bypass the...
Read more >
Error 404 not found - What does it mean & how to fix it! - IONOS
The solution is easy - an HTTP 404 error page appears when a web page can't be found. See why this happens and...
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