Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'path') #6532

Closed
GoldstarWeb opened this issue Aug 12, 2022 · 1 comment
Closed

TypeError: Cannot read properties of undefined (reading 'path') #6532

GoldstarWeb opened this issue Aug 12, 2022 · 1 comment

Comments

@GoldstarWeb
Copy link

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Netlify CMS version: [email protected]
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants