decaporg / decap-cms

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

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

Closed TbwaDjaz closed 1 year ago

TbwaDjaz commented 1 year 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
      - l
...
martinjagodic commented 1 year ago

Hi @TbwaDjaz, I am closing this issue because it lacks information. If you still have this problem, please open a new issue where you fill out the issue template with all requested details.