netlify-cms-react-starter icon indicating copy to clipboard operation
netlify-cms-react-starter copied to clipboard

Error: Invariant failed

Open dIvYaNshhh opened this issue 2 years ago • 3 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

@Jinksi Any idea why this blog page preview is not showing?

dIvYaNshhh avatar Aug 17 '22 08:08 dIvYaNshhh

I'm curious if you've made any changes to any page templates in src/views/ or if this is broken in this repo as well.

Were the previews working correctly at any point?

Jinksi avatar Aug 18 '22 23:08 Jinksi

I haven't changed anything in the source code. The contact page and other page preview properly but only blog page having this error.

dIvYaNshhh avatar Aug 19 '22 05:08 dIvYaNshhh

Since Netlify-CMS is no longer being maintained, I will close this issue and mark this repo as archived.

https://github.com/netlify/netlify-cms/discussions/6503

Jinksi avatar Nov 06 '22 22:11 Jinksi