sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
879 stars 45 forks source link

noob: Hugolify Sveltia installation #226

Open richtong opened 3 hours ago

richtong commented 3 hours ago

I can't wait to use Sveltia! But in trying to get it work, I am starting a fresh, so I don't have decap running. Your guide said to try the hugolify/sveltia-cms hugo module, so I did but I'm getting an "unexpected error". Is there a way that I can debug this to figure out what is going on. Here is my simplified hugo.yaml

baseURL: /
languageCode: en-us
title: My New Hugo Site
module:
  imports:
    - path: github.com/richtong/gohugo-theme-ananke
    - path: github.com/hugolify/hugolify-sveltia-cms

I do indeed get to the sveltia site with localhost:1313/admin

I'm using Chrome (and made the adjustments so Brave works), but when I browse to a repo, I get

image

and then i get this error. Looking at the code here, I don't see an obvious problem it is basically replacing the decap js include with sveltia.

image

richtong commented 3 hours ago

Also note I tried the other hugo module, but looks like it is not supported at least no reply since August. See https://github.com/sveltia/sveltia-cms/issues/186

richtong commented 2 hours ago

You might want to consider removing the suggestions to these two things from the documentation. Seems like the best path which I'll try now is a raw edit directly in (because I don't really want to have to make Decap work and then make your stuff work, but I'll try that next).