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') #6522

Closed
KareemDa opened this issue Jul 26, 2022 · 1 comment
Closed

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

KareemDa opened this issue Jul 26, 2022 · 1 comment

Comments

@KareemDa
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

CMS configuration

site_url: https://ntn-boilerplate.netlify.app/
logo_url: https://ntn-boilerplate.netlify.app/icon.png
publish_mode: editorial_workflow
backend:
  name: git-gateway
  branch: master
  squash_merges: true
local_backend: true
media_folder: static/img
public_folder: /img
collections:
  - label: Site settings
    name: site
    files:
      - label: Info
        name: info
        file: content/site/info.json
        format: json
        editor:
          preview: false
        fields:
          - label: Site Name
            name: sitename
            widget: string
            hint: This is used for the site title
          - label: Site Description
            name: sitedescription
            widget: string
            hint: This is used as descriptive text for links that link to this site
          - label: Site Language
            name: sitelang
            widget: string
            pattern:
              - ^[a-z]{2}([-])?([A-Za-z]{2})?$
              - Must match "xx" or "xx-XX" syntax (ex. "en" or "sv-SE")
    publish: true
    type: file_based_collection
    sortable_fields:
      - commit_date
      - commit_author
    view_filters: []
    view_groups: []
  - name: blog
    label: Blog
    folder: content/blog
    create: true
    format: frontmatter
    slug: "{{fields.createdAt}}-{{slug}}"
    fields:
      - label: Created Date
        name: createdAt
        widget: datetime
        date_format: YYYY-MM-DD
        time_format: false
      - label: Title
        name: title
        widget: string
        required: true
      - label: Description
        name: description
        widget: string
        required: false
      - label: Body
        name: body
        widget: markdown
        required: false
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: projects
    label: Projects
    label_singular: Project
    folder: content/projects
    create: true
    format: frontmatter
    slug: "{{slug}}"
    preview_path: projects/{{slug}}
    fields:
      - label: Project Category
        name: category
        widget: select
        default: animals
        options:
          - label: Animals
            value: animals
          - label: Food
            value: food
      - label: Title
        name: title
        widget: string
        required: true
      - label: Description
        name: description
        widget: string
        required: false
      - label: Cover Image
        name: cover
        widget: image
        required: false
        allow_multiple: false
      - label: Content
        name: body
        widget: markdown
        required: false
      - label: Gallery
        name: gallery
        widget: list
        required: false
        summary: "{{fields.image}}"
        field:
          label: Image
          name: image
          widget: image
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - commit_author
      - description
    view_filters: []
    view_groups: []
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
display_url: https://ntn-boilerplate.netlify.app/
isFetching: false
error: null

Additional context

@martinjagodic
Copy link
Member

Hi @KareemDa, 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