privatemaker / headless-cms

Hugo Module for headless Decap and Sveltia CMS
GNU Affero General Public License v3.0
9 stars 0 forks source link

Sveltia cms UI not loading, no errors #2

Open moookino opened 3 months ago

moookino commented 3 months ago

Hi @privatemaker I followed steps in README and added config and params yamls to the config/_defaults dir, I didn't put anything into hugo.yaml in the home/src folder to keep all the configs in one place So there's couple findings: config.yaml - it wasn't enough to have only basic things you listed, but also params part with headless_cms and backed info, otherwise admin page was saying I didn't choose any supported CMS, so I ended up just having params config in both files, see below:

module:
  imports:
  - path: headless-cms

outputs:
  home:
  - HTML
  - RSS
  - HeadlessCMSConfig
media_folder: static/images
public_folder: /images
params:
  headless_cms:
    engine: "sveltia"
    site_url: "https://redacted.org"
    backend:
      name: gitlab
      repo: "redacted"
      auth_type: pkce # Required for pkce
      app_id: # "redacted"Application ID from your GitLab settings
    collections:
      - label: "Blog"
        name: "blog"
        folder: "content/posts"
        create: true
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Publish Date", name: "date", widget: "datetime"}
          - {label: "Featured Image", name: "thumbnail", widget: "image"}
          - {label: "Body", name: "body", widget: "markdown"}

So now sveltia is loaded fine in the network and I don't see any errors in console, but I don't see any UI loaded raw there's no error in console image

Can you help to understand what's wrong there?

Also I've tried decap, but it also fails to detect right path for config.yaml raw

richtong commented 1 month ago

I have the same problem. Looking at the code it seems like it is just loading the sveltia.js file. I'll look at the sveltia issue