Skip to content

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

@Dearestwall

Description

@Dearestwall

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: [email protected]
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

CMS configuration

backend:
  name: git-gateway
  branch: main
  auth_type: implicit
  commit_messages:
    create: Create {{collection}} "{{slug}}"
    update: Update {{collection}} "{{slug}}"
    delete: Delete {{collection}} "{{slug}}"
    uploadMedia: '[skip ci] Upload "{{path}}"'
    deleteMedia: '[skip ci] Delete "{{path}}"'
media_folder: public/images
public_folder: /images
site_url: https://bibirajnischool.netlify.app/
display_url: https://bibirajnischool.netlify.app/
show_preview_links: true
logo_url: https://via.placeholder.com/80x80?text=BR+School
collections:
  - name: home
    label: 🏠 Homepage
    description: Homepage content and sections
    editor:
      preview: false
    files:
      - name: hero
        label: Hero Section
        file: public/content/home/hero.json
        description: Hero banner with image slider
        fields:
          - label: Title
            name: title
            widget: string
            default: Welcome to Bibi Rajni School
          - label: Subtitle
            name: subtitle
            widget: string
            default: Excellence in Education Since 1990
          - label: Description
            name: description
            widget: text
            default: Where excellence meets compassion.
          - label: CTA 1 Text
            name: cta1Text
            widget: string
            default: Apply Now
          - label: CTA 1 Link
            name: cta1Link
            widget: string
            default: /admissions
          - label: CTA 2 Text
            name: cta2Text
            widget: string
            default: Explore
          - label: CTA 2 Link
            name: cta2Link
            widget: string
            default: "#programs"
          - label: Slides
            name: slides
            widget: list
            allow_add: true
            collapsed: false
            fields:
              - label: Image
                name: image
                widget: image
                media_library:
                  config:
                    multiple: false
              - label: Caption
                name: caption
                widget: string
      - name: highlights
        label: Highlights
        file: public/content/home/highlights.json
        description: 4 highlight cards
        fields:
          - label: Cards
            name: cards
            widget: list
            allow_add: true
            collapsed: false
            fields:
              - label: Icon
                name: icon
                widget: string
                default: 🎓
              - label: Title
                name: title
                widget: string
              - label: Description
                name: description
                widget: text
              - label: Color
                name: color
                widget: select
                options:
                  - label: 🔵 Blue
                    value: from-blue-500 to-blue-600
                  - label: 🟣 Purple
                    value: from-purple-500 to-purple-600
                  - label: 🌸 Pink
                    value: from-pink-500 to-pink-600
                  - label: 🟢 Green
                    value: from-green-500 to-green-600
                  - label: 🟠 Orange
                    value: from-orange-500 to-orange-600
                  - label: 🔴 Red
                    value: from-red-500 to-red-600
      - name: principal
        label: 👨‍💼 Principal's Desk
        file: public/content/home/principal.json
        description: Message from Principal
        fields:
          - label: Section Title
            name: title
            widget: string
            default: From 
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions