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 destructure property 'decorations' of 'It' as it is undefined. #7191

Open
aristocratious opened this issue Apr 25, 2024 · 0 comments

Comments

@aristocratious
Copy link

Describe the bug

I just created the astro-decap-cms-starter using the Netlify button and setup Identity and git gateway. Then after logging in and clicking new post, I get this error immediately:

TypeError: Cannot destructure property 'decorations' of 'It' as it is undefined. at cr (/hoisted.4baacd68.js:2119:4890) at fr (/hoisted.4baacd68.js:2121:2457) at dl (/hoisted.4baacd68.js:30:55233) at $u (/hoisted.4baacd68.js:34:9308) at Uu (/hoisted.4baacd68.js:34:999) at Ku (/hoisted.4baacd68.js:34:927) at ou (/hoisted.4baacd68.js:34:777) at Cu (/hoisted.4baacd68.js:32:11429) at /hoisted.4baacd68.js:30:39916 at O.unstable_runWithPriority (/hoisted.4baacd68.js:19:3938)

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: decap-cms-app@3.0.7
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

CMS configuration

load_config_file: false
local_backend: true
backend:
  name: git-gateway
  branch: latest
media_folder: public/assets/blog
public_folder: /assets/blog
collections:
  - name: posts
    label: Blog Posts
    label_singular: Blog Post
    folder: src/pages/posts
    create: true
    delete: true
    fields:
      - name: title
        widget: string
        label: Post Title
      - name: publishDate
        widget: datetime
        format: DD MMM YYYY
        date_format: DD MMM YYYY
        time_format: false
        label: Publish Date
      - name: author
        widget: string
        label: Author Name
        required: false
      - name: authorURL
        widget: string
        label: Author URL
        required: false
      - name: description
        widget: string
        label: Description
        required: false
      - name: body
        widget: markdown
        label: Post Body
      - name: layout
        widget: select
        default: ../../layouts/BlogPost.astro
        options:
          - label: Blog Post
            value: ../../layouts/BlogPost.astro
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - publishDate
      - author
      - description
    view_filters: []
    view_groups: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

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