"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 issueAre 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
react-static -V
:node -v
:npm -v
:- Operating system:
- 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:
- Created 5 years ago
- Reactions:3
- Comments:11 (8 by maintainers)
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?
Yeah, we’re seeing it too (now being caused by a different bug). We’re working on a fix. Thanks for your patience!