decaporg / decap-cms

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

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

Closed JamesTsetsekas closed 8 months ago

JamesTsetsekas commented 8 months ago

unable to create posts or upload media

Applicable Versions:

CMS configuration

backend:
  name: git-gateway
  branch: master
local_backend: true
logo_url: https://d33wubrfki0l68.cloudfront.net/c89899bad974606ce0e0f5d5a95842dc787dcb56/7fe98/assets/images/logo-blue.png
media_folder: public/images/blog
public_folder: /images/blog
collections:
  - name: blog
    label: Blog
    folder: src/blog
    create: true
    slug: "{{pageName}}"
    fields:
      - label: Page-Name-with-dashes-only
        name: pageName
        widget: string
      - label: Blog Title
        name: blogTitle
        widget: string
      - label: Title Tag
        name: titleTag
        widget: string
      - label: Description
        name: blogDescription
        widget: string
      - label: Author
        name: author
        widget: string
      - label: Date
        name: date
        widget: datetime
      - label: Tags
        name: tags
        widget: list
        default:
          - post
      - label: Featured Image
        name: image
        widget: image
      - label: Image Caption
        name: imageAlt
        widget: string
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - pageName
      - date
      - author
    view_filters: []
    view_groups: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

JamesTsetsekas commented 8 months ago

the path was missing creating the folder solved the issue