decaporg / decap-cms

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

TypeError: marked is not a function #7222

Closed syukrie77 closed 5 months ago

syukrie77 commented 5 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: git-gateway
  branch: main
local_backend: true
media_folder: static/img
public_folder: /img
collections:
  - name: projects
    label: Projects
    folder: src/pages/projects
    filter:
      field: templateKey
      value: project-page
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} {{year}}-{{month}}-{{day}} {{fields.featured}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: project-page
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Featured
        name: featured
        widget: boolean
      - label: Featured Image
        name: featuredimage
        widget: object
        fields:
          - label: Image
            name: image
            widget: image
          - label: Alt
            name: alt
            widget: string
      - label: Location
        name: location
        widget: string
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
    view_filters: []
    view_groups: []
  - name: pages
    label: Pages
    files:
      - file: src/pages/index.md
        label: Landing Page
        name: index
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: index-page
          - label: Title
            name: title
            widget: string
          - label: Image
            name: image
            widget: image
          - label: Heading
            name: heading
            widget: string
          - label: Subheading
            name: subheading
            widget: string
          - label: About
            name: tentang
            widget: object
            fields:
              - label: Heading
                name: heading
                widget: string
              - label: Description
                name: description
                widget: text
              - label: Image
                name: image
                widget: object
                fields:
                  - label: Image
                    name: image
                    widget: image
                  - label: Alt
                    name: alt
                    widget: string
              - label: Button
                name: button
                widget: object
                fields:
                  - label: Label
                    name: label
                    widget: string
                  - label: URL
                    name: url
                    widget: string
      - file: src/pages/projects/index.md
        label: Projects
        name: projects-index
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: projects-page
          - label: Title
            name: title
            widget: string
          - label: Heading
            name: heading
            widget: string
          - label: Subheading
            name: subheading
            widget: string
      - file: src/pages/tentang-kami/index.md
        label: About
        name: tentang
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: about-page
          - label: Title
            name: title
            widget: string
          - label: Heading
            name: heading
            widget: string
          - label: Subhead
...
martinjagodic commented 5 months ago

Hi @syukrie77, 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.