Skip to content
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

Unhandled Runtime Error #3

Closed
christianlauer opened this issue Dec 24, 2020 · 8 comments
Closed

Unhandled Runtime Error #3

christianlauer opened this issue Dec 24, 2020 · 8 comments

Comments

@christianlauer
Copy link

This happens when you try to open the admin backend:

Unhandled Runtime Error
Error: Failed to load static props

../../../../next-server/lib/router/router.ts (341:12) @ eval

339 | throw new Error(SSG_DATA_NOT_FOUND_ERROR)
340 | }

341 | throw new Error(Failed to load static props)
| ^
342 | }
343 | return res.json()
344 | })

@styxlab
Copy link
Owner

styxlab commented Dec 25, 2020

Welcome @christianlauer!

I have never seen this error, could you please link to an example repository and add a step-by-step description explaining how the error can be replicated?

@christianlauer
Copy link
Author

First, thanks for taking the time to build such an amazing template! I'm new to JAMstack so I might be confused but tried to open http://localhost:3000/ghost for accessing the backend after following your instructions of the README. Installed it and can access it and also deploy it to vercel, but locally after "yarn dev" I tried to open http://localhost:3000/ghost and then the error occurred.

Merry Christmas, by the way :)

@djmac7
Copy link

djmac7 commented Dec 26, 2020

Having this issue as well -- thanks so much for creating this!

Screen Shot 2020-12-25 at 9 02 37 PM

@styxlab
Copy link
Owner

styxlab commented Dec 26, 2020

Let me clarify that this repo is a front-end replacement for Ghost but not a back-end replacement. The idea is that you run a headless Ghost CMS instance where you create your articles and meta data. You can then use this repo to (statically + incrementally) create the visual views (currently Ghost Casper style) and easily publish your content on a global content delivery network (CDN) such as Vercel or Netlify. This architecture gives you a lot of benefits in terms of speed, customizations, global distribution and analytics.

If you do not have a Ghost instance running already, a good starting point is the article entitled Ghost CMS on Hetzner Cloud which I wrote a few months ago.

To answer your question: The endpoint /ghost does not exist here, you should go to your headless CMS instead. Nonetheless, you should get a 404 error when calling a non-existing endpoint and not an internal error - so this is something that needs to be fixed. I will open a new issue for that.

Repository owner deleted a comment from mtaberna Dec 26, 2020
@christianlauer
Copy link
Author

Sorry for the misunderstanding on my behalf here - I actually went to your gatsby version for the setup and it works fine. Cheers!
As this is the Casper theme, how much time do you think would somebody need to transform the https://edge.ghost.io/ Theme when they have your theme as a starting point?

@styxlab
Copy link
Owner

styxlab commented Dec 28, 2020

how much time do you think would somebody need to transform the https://edge.ghost.io/ Theme

For someone with good React knowledge, this should be doable within 2 - 3 weeks. There are some subtleties in the theme, such as the gallery views (sorted by hidden tags?) and the slide show with next, previous, magnify, full screen etc. that may take some time to fully replicate.

@styxlab
Copy link
Owner

styxlab commented Jan 8, 2021

@all-contributors please add @christianlauer for bug reports

@allcontributors
Copy link
Contributor

@styxlab

I've put up a pull request to add @christianlauer! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants