decaporg / decap-cms

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

Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&a... #7243

Closed TbwaDjaz closed 4 months ago

TbwaDjaz commented 4 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: git-gateway
  branch: master
media_folder: static/img
public_folder: /img
collections:
  - name: blog
    label: Blog
    folder: src/pages/blog
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: blog-post
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Hero image
        name: Image
        widget: image
      - label: Description
        name: description
        widget: text
      - label: Body
        name: body
        widget: markdown
      - label: Tags
        name: tags
        widget: list
      - label: author
        name: author
        widget: relation
        collection: authors
        search_fields:
          - title
        value_field: details
        display_fields:
          - title
        required: true
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: pages
    label: Pages
    files:
      - file: src/pages/carriere.md
        label: Carriere
        name: carriere
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: carriere-page
          - label: Title
            name: title
            widget: string
          - label: jobs
            name: jobs
            widget: list
            fields:
              - label: job title
                name: jobTitle
                widget: text
              - label: job description
                name: jobDescription
                widget: markdown
      - file: src/pages/index.md
        label: home Page
        name: index
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: index-page
          - label: Title
            name: title
            widget: string
          - label: Image
            name: image
            widget: image
          - label: Heading
            name: heading
            widget: string
          - label: Subheading
            name: subheading
            widget: string
            required: false
      - file: src/pages/about/index.md
        label: About
        name: about
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: about-page
          - label: Title
            name: title
            widget: string
          - label: Body
            name: body
            widget: markdown
    publish: true
    type: file_based_collection
    sortable_fields:
      - commit_date
      - commit_author
    view_filters: []
    view_groups: []
  - name: projets
    label: Projets
    create: true
    folder: src/pages/projects
    slug: "{{year}}-{{month}}-{{day}}_{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: projets-tbwa
      - label: Informations SEO (importantes)
        name: seo
        widget: object
        fields:
          - label: SEO title
            name: seo_title
            widget: string
          - label: Description SEO (max 140 caractères)
            name: seo_metta_desc
            widget: text
      - label: Titre
        name: title
        widget: string
      - label: Client
        name: client
        widget: string
      - label: Date
        name: date
        widget: date

...
martinjagodic commented 4 months ago

Hi @TbwaDjaz, 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.