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 null (reading 'toString') #6967

Closed mjavadshamsi closed 8 months ago

mjavadshamsi commented 8 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  branch: master
  name: git-gateway
  squash_merges: true
collections:
  - create: true
    fields:
      - label: Widget Type (https://wowchemy.com/docs/page-builder/)
        name: widget
        required: true
        widget: string
      - default: my-widget-123
        label: Your reference for this widget (e.g. recent-posts)
        name: widget_id
        widget: string
      - default: true
        label: Headless?
        name: headless
        widget: hidden
      - default: 10
        label: Widget position
        max: 1001
        min: 0
        name: weight
        step: 10
        value_type: int
        widget: number
      - label: Title
        name: title
        required: false
        widget: string
      - label: Subtitle
        name: subtitle
        required: false
        widget: string
      - default: true
        label: Enabled?
        name: active
        required: false
        widget: boolean
      - fields:
          - default: "2"
            label: "Columns (options: `1` or `2`)"
            name: columns
            required: false
            widget: string
          - fields:
              - allowInput: true
                enableAlpha: true
                label: Solid color
                name: color
                required: false
                widget: color
              - allowInput: true
                enableAlpha: true
                label: Gradient start
                name: gradient_start
                required: false
                widget: color
              - allowInput: true
                enableAlpha: true
                label: Gradient end
                name: gradient_end
                required: false
                widget: color
              - default: false
                label: Use a light text color?
                name: text_color_light
                required: false
                widget: boolean
              - label: Image
                media_folder: /assets/media
                media_library:
                  config:
                    multiple: false
                name: image
                public_folder: ""
                required: false
                widget: image
              - default: 0
                label: Darken the image? (0 is transparent & 1 is opaque)
                max: 1
                min: 0
                name: image_darken
                required: false
                step: 0.1
                value_type: float
                widget: number
            label: Background
            name: background
            required: false
            widget: object
        label: Widget Style
        name: design
        required: false
        widget: object
      - label: Body
        name: body
        required: false
        widget: markdown
    folder: content/home
    identifier_field: widget_id
    label: Homepage
    media_folder: /assets/media
    name: home
    path: "{{slug}}"
    public_folder: ""
    summary: "{{filename}}: {{title}}"
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - widget_id
      - commit_author
    view_filters: []
    view_groups: []
  - create: true
    fields:
      - label: Display name (such as your full name)
        name: title
        widget: string
      - label: Position or tagline (such as Professor of AI)
        name: role
        required: false
        widget: string
      - default: avatar
        label: Avatar (upload an image named `avatar.jpg/png`)
        media_library:
          config:
            multiple: false
        name: avatar_filename
        require
...
martinjagodic commented 8 months ago

Hi @mjavadshamsi, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.

I'm closing the issue for now. Once you add the missing information, I can open it again.