decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

Error: Cannot resolve a DOM node from Slate node: {"text":""} #7283

Closed aathanor closed 1 month ago

aathanor commented 2 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: github
  repo: aathanor/antimaterie-z
  branch: main
  base_url: https://antimaterie.ro
  auth_endpoint: /api/auth
  auth_scope: repo
  open_authoring: true
  use_graphql: true
site_url: https://antimaterie.ro
publish_mode: editorial_workflow
media_folder: static/images/uploads
public_folder: /images/uploads
collections:
  - name: authors
    label: Authors
    label_singular: Author
    description: |
      Secțiune pentru administrare. Nu se poate modifica!"
    folder: content/authors
    create: false
    fields:
      - label: Name
        name: name
        widget: string
        hint: First and Last
      - label: Description
        name: description
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - name
      - name
      - description
    view_filters: []
    view_groups: []
  - name: flux
    label: Flux
    label_singular: Post
    description: >
      Postări scurte care apar în flux cronologic (cam ca pe Facebook).
      Recomandarea e ca tot ce trece de 200 de cuvinte să fie articol în
      secțiunea "Distilat"
    folder: content/flux
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    view_filters:
      - label: Posts With Index
        field: title
        pattern: "This is post #"
        id: "title__This is post #"
      - label: Posts Without Index
        field: title
        pattern: front matter post
        id: title__front matter post
      - label: Drafts
        field: draft
        pattern: true
        id: draft__true
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Drafts
        field: draft
        id: draft__undefined
    fields:
      - label: Titlu
        name: title
        widget: string
        tagname: h1
      - label: Data publicării
        name: date
        widget: datetime
        format: YYYY-MM-DD
        default: "{{now}}"
      - label: Autor
        name: author
        widget: relation
        collection: authors
        search_fields:
          - name
        value_field: name
      - label: Body
        name: body
        widget: markdown
        hint: Aici intră textul
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
  - name: distilat
    label: Distilat
    label_singular: Distilat
    description: >
      Articole de fond mai lungi (recomandarea e între 300 și 1000 de cuvinte).
      Tot ce e sub 200 de cuvinte ar trebui să fie postare în secțiunea "Flux"
    folder: content/distilat
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    view_filters:
      - label: Posts With Index
        field: title
        pattern: "This is post #"
        id: "title__This is post #"
      - label: Posts Without Index
        field: title
        pattern: front matter post
        id: title__front matter post
      - label: Drafts
        field: draft
        pattern: true
        id: draft__true
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Drafts
        field: draft
        id: draft__undefined
    fields:
      - label: Titlu
        name: title
        widget: string
        tagname: h1
      - label: Data publicării
        name: date
        widget: datetime
        format: YYYY-MM-DD
        default: "{{now}}"
      - label: Body
        name: body
        widget: 
...
martinjagodic commented 1 month ago

Hi @aathanor, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.

I'm closing the issue for now. Once you add the missing information, I can open it again.