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 32. #6279

Closed
AudreyH49 opened this issue Mar 8, 2022 · 2 comments

Comments

@AudreyH49
Copy link

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

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

CMS configuration

locale: fr
backend:
  name: github
  site_domain: beta.gouv.fr
  repo: betagouv/beta.gouv.fr
  commit_messages:
    create: Création de {{slug}} dans {{collection}} !
    update: Mise à jour de {{slug}} dans {{collection}}
    delete: Suppression de {{slug}} dans {{collection}}
    uploadMedia: Nouvelle image {{path}}
    deleteMedia: Suppression de l'image {{path}}
  squash_merges: true
  open_authoring: true
  use_graphql: false
media_folder: img/netlifycms
display_url: https://beta.gouv.fr
logo_url: https://beta.gouv.fr/assets/images/favicons/apple-touch-icon-180x180.png
show_preview_links: true
slug:
  encoding: ascii
  clean_accents: true
  sanitize_replacement: .
publish_mode: editorial_workflow
relation_default_options:
  widget: relation
  valueField: "{{slug}}"
  displayFields:
    - title
  searchFields:
    - slug
    - title
date_field_defaults:
  widget: datetime
  format: YYYY-MM-DD
  dateFormat: YYYY-MM-DD
  timeFormat: false
  default: null
collections:
  - name: startups
    publish: false
    label: Produits
    preview_path: startups/{{slug}}
    label_singular: Produit
    folder: content/_startups
    create: true
    delete: false
    editor:
      preview: false
    fields:
      - label: Quel est le nom de ta Startup d'ETat ?
        name: title
        hint: Ce nom sert d'identifiant pour la startup et ne doit pas dépasser 30
          caractères
        widget: string
        pattern:
          - ^.{1,30}$
          - Vous êtes limité à 20 caractères
      - label: Quel est son objectif principal ?
        hint: >
          Par exemple : "Faciliter la création d'une fiche produit". Pas besoin
          de faire plus long.
        name: mission
        widget: string
      - label: Qui est l'administration sponsor ?
        hint: Indiques le nom de l'administration qui porte ta Startup d'Etat.
        name: owner
        widget: string
      - label: Quelques infos sur la ou les administrations sponsors ou partenaires ?
        name: sponsors
        widget: list
        collapsed: false
        fields:
          - label: Nom de l'administration
            name: name
            widget: string
          - label: Quel est l'acronyme de cette administration ?
            name: acronym
            widget: string
            required: false
          - label: Type
            hint: Quelle est le type de partenaire ? si vous ne savez pas, vous n'avez pas
              besoins de compléter
            name: type
            widget: select
            required: false
            options:
              - label: Administration centrale
                value: administration-centrale
              - label: Opérateur
                value: operateur
              - label: Sécurité sociale
                value: securite-sociale
              - label: "Collectivité territoriale "
                value: collectivite-territoriale
              - label: Autre
                value: autre
          - label: Cette administration intervient principalement dans quel champs de
              l'action publique ?
            hint: >
              Quelle est le domaine "ministériel" ou domaine "action publique"
              du partenaire ? si vous ne savez pas, vous n'avez pas besoins de
              compléter
            name: domaine_ministeriel
            widget: select
            required: true
            options:
              - label: Affaires étrangères
                value: affaires-etrangeres
              - label: Affaires sociales
                value: affaires-sociales
              - label: Agriculture
                value: agriculture
              - label: Armées
...
@davidenke
Copy link

Have a look at this comment in #4961.

@martinjagodic
Copy link
Member

Hi @AudreyH49, we believe that you have a problem, but in order for anybody to help you, you need to provide as much detail as possible. The issue template contains the bare minimum of what is required (how to reproduce, expected behaviour, screenshots, etc..).

I'm closing this issue for now. If the problem persists, please open a new issue with all of the details filled out. Also, before posting a new issue, please verify that everything is all right with your environment (computer, internet, browser) and verify whether this issue was already reported by someone else. For general help, please turn to our Slack.

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

4 participants