Skip to content

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

@sheldonhull

Description

@sheldonhull

Describe the bug

ReactJS

To Reproduce

I can't open my cms instance and not sure what to do.
I'm guessing it's some issue parsing dates from the front-matter, but not sure.
I want to use date tokens.

I removed this for example to try and test the slug generation, but it didn't seem to impact anything.

- slug: '{{year}}-{{month}}-{{day}}t{{Hour}}-{{Minute}}-00-00'

I also removed this from collections.item.fields.label.format format: YYYY-MM-DD HH:00:00 +-HH:mm

Expected behavior

Open CMS without issue, and see the list of posts.

Screenshots
none.

Applicable Versions:

  • Netlify CMS version: netlify-cms@2.10.51
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

CMS configuration

public_folder: /static/images
media_folder: static/images
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
editor:
  preview: false
display_url: https://www.sheldonhull.com
publish_mode: editorial_workflow
backend:
  name: git-gateway
  branch: master
  squash_merges: true
collections:
  - view_filters: []
    identifier_field: title
    meta: {}
    name: microblog
    slug: "{{year}}-{{month}}-{{day}}-{{Hour}}-{{Minute}}"
    folder: content/microblog
    publish: true
    sortableFields:
      - commit_date
      - title
      - date
      - commit_author
    label: micro.blog
    format: yaml-frontmatter
    fields:
      - label: title
        name: title
        widget: datetime
        required: true
      - label: Publish Date
        name: date
        widget: datetime
        required: true
      - label: Body
        name: body
        widget: markdown
        required: true
      - label: Tags
        name: tags
        widget: list
        default:
          - tech
          - til
        multiple: true
        required: true
        allow_add: true
        options:
          - til
          - development
          - sql-server
    create: true
    extension: md
  - view_filters: []
    meta: {}
    name: blog
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    folder: content/blog
    publish: true
    sortableFields:
      - commit_date
      - title
      - date
      - commit_author
    label: blog
    format: yaml-frontmatter
    fields:
      - label: Title
        name: title
        widget: string
        tagname: h1
        required: true
      - label: slug
        name: slug
        widget: string
        tagname: h1
        required: true
      - label: Publish Date
        name: date
        widget: date
        format: YYYY-MM-DD
        required: true
      - label: Last Modified Date
        name: last_modified_at
        widget: date
        format: YYYY-MM-DD
        required: true
      - label: Body
        name: body
        widget: markdown
        required: true
      - label: toc
        name: toc
        widget: boolean
        default: true
      - label: Excerpt
        name: excerpt
        widget: string
        required: true
      - label: Cover Image
        name: image
        widget: image
        required: false
        tagname: null
      - label: Tags
        name: tags
        widget: select
        default: tech
        options:
          - til
          - development
          - sql-server
        multiple: true
        required: true
        allow_add: true
      - name: docs
        label: docs
        folder: content/docs
        format: yaml-frontmatter
        extension: md
        create: true
        slug: "{{ slug }}"
        fields:
          - label: Title
            name: title
            widget: string
            tagname: h1
            required: true
          - label: slug
            name: slug
           
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions