decaporg / decaporg/decap-cms

TypeError: Cannot destructure property 'decorations' of 'It' as it is undefined.

Open
#7,191 0 comments 0 reactions 0 assignees View on GitHub
status: stale
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.