decaporg / decap-cms

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

TypeError: e.get is not a function #6102

Closed princeomonu closed 1 year ago

princeomonu commented 2 years ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: git-gateway
  branch: main
local_backend: true
media_folder: uploads
public_folder: /uploads/
site_url: https://the-jacksons-crew-of-comedy.netlify.app/
collections:
  - label: Videos
    name: videos
    folder: src/videos
    label_singular: Video
    create: true
    slug: "{{slug}}"
    preview_path: product/{{slug}}
    fields:
      - label: Id
        name: id
        widget: hidden
        default: "{{uuid}}"
      - label: Title
        name: title
        widget: string
      - label: Cover Art
        name: coverArt
        widget: image
      - label: Video Url
        name: url
        widget: string
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - commit_author
    view_filters: []
    view_groups: []
  - name: settings
    label: Settings
    files:
      - label: Global
        name: global
        file: src/settings/global.md
        fields:
          - label: Site Name
            name: site_name
            widget: string
          - label: Logo
            name: site_logo
            widget: image
          - label: Email
            name: email
            widget: string
          - label: Phone Number
            name: phone
            widget: string
            default: "+234"
          - label: Facebook Url
            name: facebook
            widget: string
          - label: Twitter Url
            name: twitter
            widget: string
          - label: Instagram Url
            name: instagram
            widget: string
          - label: Youtube Url
            name: youtube
            widget: string
      - label: Page Settings
        name: landing-page
        file: src/settings/landing-page.md
        fields:
          - label: Header
            name: header
            widget: object
            fields:
              - label: Background Image
                name: background
                widget: image
              - label: Title
                name: title
                widget: string
              - label: Details
                name: details
                widget: text
          - label: Trailer
            name: trailer
            widget: object
            fields:
              - label: Youtube Embed Code
                name: embed
                widget: code
                default_language: html
              - label: Content
                name: content
                widget: text
          - label: About
            name: about
            widget: object
            fields:
              - label: Background
                name: background
                widget: image
              - label: Content
                name: content
                widget: text
          - label: Testimonial
            name: testimonial
            widget: object
            fields:
              - label: Background
                name: background
                widget: image
              - label: Testimonies
                name: testimonies
                widget: list
                fields:
                  - label: Name
                    name: name
                    widget: string
                  - label: Testimony
                    name: testimony
                    widget: text
          - label: Gallery
            name: gallery
            widget: object
            fields:
              - label: Description
                name: description
                widget: text
              - label: Images
                name: images
                widget: image
                allow_multiple: true
    publish: true
    type: file_based_collection

...
martinjagodic commented 1 year ago

Hi, we believe that you have a problem, but in order for anybody to help you, you need to provide as much detail as possible. The issue template contains the bare minimum of what is required (how to reproduce, expected behaviour, screenshots, etc..).

I'm closing this issue for now. If the problem persists, please open a new issue with all of the details filled out. Also, before posting a new issue, please verify that everything is all right with your environment (computer, internet, browser) and verify whether this issue was already reported by someone else. For general help, please turn to our Slack.