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

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

Closed
umihanik01 opened this issue Feb 21, 2021 · 2 comments

Comments

@umihanik01
Copy link

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Netlify CMS version: [email protected]
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36

CMS configuration

backend:
  branch: main
  name: git-gateway
  squash_merges: true
collections:
  - sortable_fields:
      - commit_date
      - widget_id
      - commit_author
    view_filters: []
    identifier_field: widget_id
    public_folder: /static/media
    path: "{{slug}}"
    summary: "{{filename}}: {{title}}"
    media_folder: /static/media
    name: home
    folder: content/home
    view_groups: []
    publish: true
    label: Homepage
    fields:
      - label: Widget Type (https://wowchemy.com/docs/page-builder/)
        name: widget
        required: true
        widget: string
      - default: my-widget-123
        label: Your reference for this widget (e.g. recent-posts)
        name: widget_id
        widget: string
      - default: true
        label: Headless?
        name: headless
        widget: hidden
      - default: 10
        label: Widget position
        max: 1001
        min: 0
        name: weight
        step: 10
        value_type: int
        widget: number
      - label: Title
        name: title
        required: false
        widget: string
      - label: Subtitle
        name: subtitle
        required: false
        widget: string
      - default: true
        label: Enabled?
        name: active
        required: false
        widget: boolean
      - fields:
          - default: "2"
            label: "Columns (options: `1` or `2`)"
            name: columns
            required: false
            widget: string
          - fields:
              - allowInput: true
                enableAlpha: true
                label: Solid color
                name: color
                required: false
                widget: color
              - allowInput: true
                enableAlpha: true
                label: Gradient start
                name: gradient_start
                required: false
                widget: color
              - allowInput: true
                enableAlpha: true
                label: Gradient end
                name: gradient_end
                required: false
                widget: color
              - default: false
                label: Use a light text color?
                name: text_color_light
                required: false
                widget: boolean
              - label: Image
                media_folder: /static/media
                media_library:
                  config:
                    multiple: false
                name: image
                public_folder: /static/media
                required: false
                widget: image
              - default: 0
                max: 1
                widget: number
                value_type: float
                name: image_darken
                step: 0.1
                min: 0
                label: Darken the image? (0 is transparent & 1 is opaque)
                required: false
            label: Background
            name: background
            required: false
            widget: object
        label: Widget Style
        name: design
        required: false
        widget: object
      - label: Body
        name: body
        required: false
        widget: markdown
    type: folder_based_collection
    create: true
  - sortable_fields:
      - commit_date
      - title
      - commit_author
      - bio
    view_filters: []
    label_singular: Author
    public_folder: ""
    path: "{{slug}}/_index"
    media_folder: ""
    name: authors
    folder: content/authors
    view_groups: []
    publish: true
    label: Authors
    filter:
      field: cms_exclude
    fields:
      - label: Display name (such as your full name)
        name: title
   
...
@erezrokah
Copy link
Contributor

Hi @umihanik01, can you share a screenshot of the error, the full config.yml and a step by step reproduction?

@davidenke
Copy link

davidenke commented Jan 20, 2023

Have a look at this comment in #4961.

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

No branches or pull requests

3 participants