decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Error: Invariant failed

Open dIvYaNshhh opened this issue 2 years ago • 0 comments

**Describe the bug**

To Reproduce

Expected behavior

Screenshots

Screenshot 2022-08-17 at 1 42 40 PM

Applicable Versions:

  • Netlify CMS version: [email protected]
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36

CMS configuration

backend:
  name: git-gateway
  branch: master
media_folder: public/images/uploads
public_folder: /images/uploads
collections:
  - name: pages
    label: Page
    delete: false
    editor:
      preview: true
    files:
      - file: content/pages/contact.md
        label: Contact Page
        name: contact-page
        fields:
          - label: Title
            name: title
            widget: string
          - label: Featured Image
            name: featuredImage
            widget: image
          - label: Subtitle
            name: subtitle
            widget: markdown
          - label: Body
            name: body
            widget: markdown
          - label: Address
            name: address
            widget: text
          - label: Phone
            name: phone
            widget: string
          - label: Email Address
            name: email
            widget: string
          - label: Meta
            required: false
            name: meta
            widget: object
            fields:
              - label: Title
                name: title
                widget: string
                required: false
              - label: Description
                name: description
                widget: text
                required: false
                pattern:
                  - .{,300}
                  - Must not exceed 300 characters
              - label: Canonical Link
                name: canonicalLink
                widget: string
                required: false
              - label: Noindex
                name: noindex
                widget: boolean
                required: false
      - file: content/pages/blog.md
        label: Blog Page
        name: blog-page
        fields:
          - label: Title
            name: title
            widget: string
          - label: Featured Image
            name: featuredImage
            widget: image
          - label: Subtitle
            name: subtitle
            widget: markdown
          - label: Meta
            required: false
            name: meta
            widget: object
            fields:
              - label: Title
                name: title
                widget: string
                required: false
              - label: Description
                name: description
                widget: text
                required: false
                pattern:
                  - .{,300}
                  - Must not exceed 300 characters
              - label: Canonical Link
                name: canonicalLink
                widget: string
                required: false
              - label: Noindex
                name: noindex
                widget: boolean
                required: false
      - file: content/pages/about.md
        label: About Page
        name: about-page
        fields:
          - label: Title
            name: title
            widget: string
          - label: Featured Image
            name: featuredImage
            widget: image
          - label: Subtitle
            name: subtitle
            widget: markdown
          - label: Section 1
            name: section1
            widget: markdown
          - label: Section 2
            name: section2
            widget: markdown
          - label: Meta
            required: false
            name: meta
            widget: object
            fields:
              - label: Title
                name: title
                widget: string
                required: false
              - label: Description
                name: description
                widget: text
                required: false
                pattern
...

dIvYaNshhh avatar Aug 17 '22 08:08 dIvYaNshhh