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: Cannot read properties of undefined (reading 'path') #6532

Closed GoldstarWeb closed 1 year ago

GoldstarWeb commented 2 years 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: pages
    label: Page Content
    files:
      - label: About Us Page
        name: about
        file: assets/content/about.json
        fields:
          - label: Title
            name: title
            widget: string
          - label: Header
            name: intro
            widget: markdown
          - label: Mission
            name: mission
            widget: markdown
          - label: Vision
            name: vision
            widget: markdown
          - label: More about GRDC
            name: moreInfo
            widget: markdown
    publish: true
    type: file_based_collection
    sortable_fields:
      - commit_date
      - commit_author
    view_filters: []
    view_groups: []
  - name: housing-locations
    label: Home page - Housing Locations
    format: json
    folder: assets/content/housinglocations
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    editor:
      preview: false
    fields:
      - label: Housing Location Title
        name: title
        widget: string
        required: true
      - label: Project Status
        name: status
        widget: select
        required: true
        default: Completed
        options:
          - Completed
          - Ongoing
      - label: Exact Location/Address
        name: location
        widget: string
        required: true
      - label: Starting Price
        name: startingPrice
        widget: number
        required: true
      - label: Thumbnail Description (Short)
        name: shortDescription
        widget: text
        required: true
      - label: Description (Full)
        name: description
        widget: markdown
        required: true
      - label: Thumbnail Image
        name: thumbnail
        widget: image
        required: true
      - label: Description on Commute Instructions
        name: commute-description
        widget: text
        required: true
      - label: Location Image
        name: housingLocationImage1
        widget: image
        required: false
      - label: Location Image
        name: housingLocationImage2
        widget: image
        required: false
      - label: Location Image
        name: housingLocationImage3
        widget: image
        required: false
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - commit_author
      - shortDescription
    view_filters: []
    view_groups: []
  - name: housing-projects
    label: Projects page - Projects
    format: json
    folder: assets/content/projects
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    editor:
      preview: false
    fields:
      - label: Housing Project Title
        name: housingProjectTitle
        widget: string
        required: true
      - label: Status
        name: status
        widget: select
        default: For Sale
        options:
          - For Sale
          - For Rent
          - For Reservation
      - label: Exact Location
        name: location
        widget: string
        required: true
      - label: Housing Location
        name: housingLocation
        widget: relation
        default: Antipolo Residences
        collection: housing-locations
        valueField: title
        searchFields:
          &a1
          - title
        required: true
        value_field: title
        search_fields: *a1
      - label: Thumbnail Description (Short)
        name: shortDescription
        widget: text
        required: true
      - label: Description (Full)
        na
...
martinjagodic commented 1 year ago

Hi @GoldstarWeb, 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.