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

Closed
JamesTsetsekas opened this issue Nov 18, 2023 · 1 comment
Closed

Comments

@JamesTsetsekas
Copy link

unable to create posts or upload media

Applicable Versions:

  • Netlify CMS version: netlify-cms@2.10.192
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

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

the path was missing creating the folder solved the issue

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

1 participant