Skip to content

IndexSizeError: Failed to execute 'setStart' on 'Range': There is no child at offset 2. #7630

@MoeRookie

Description

@MoeRookie

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Netlify CMS version: netlify-cms@2.10.192
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

CMS configuration

backend:
  name: git-gateway
  branch: main
base_url: https://moerookie-hugo-blog.netlify.app
media_folder: static/images
public_folder: /images
collections:
  - name: posts
    label: 博客文章
    folder: content/posts
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - label: 布局
        name: layout
        widget: hidden
        default: post
      - label: 标题
        name: title
        widget: string
        required: true
      - label: 发布日期
        name: date
        widget: datetime
        format: YYYY-MM-DDTHH:mm:ssZ
        required: true
      - label: 草稿
        name: draft
        widget: boolean
        default: true
      - label: 标签
        name: tags
        widget: list
        allow_add: true
        required: false
      - label: 正文内容
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
    view_filters: []
    view_groups: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions