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

Error: Cannot find a descendant at path [6,9,2] in node: {"children":[{"type":"paragraph","childr... #7393

Open
gvcalligraphy opened this issue Feb 3, 2025 · 5 comments

Comments

@gvcalligraphy
Copy link

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: [email protected]
  • Git provider: github
  • Browser version: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0

CMS configuration

backend:
  name: github
  repo: GeneseeValleyCalligraphyGuild/gvcalligraphy.org
media_folder: public/img
public_folder: /img
collections:
  - name: blog
    label: Blog
    folder: src/pages/blog
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: blog-post
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Description
        name: description
        widget: text
      - label: Body
        name: body
        widget: markdown
      - label: Tags
        name: tags
        widget: list
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: Pages
    label: Pages
    folder: src/pages
    create: true
    extension: md
    format: frontmatter
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: general-page
      - label: Title
        name: title
        widget: string
      - label: Path
        name: path
        widget: string
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - commit_author
    view_filters: []
    view_groups: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

@martinjagodic
Copy link
Member

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

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2025
@gvcalligraphy
Copy link
Author

There is no place to click in the issue template; reporting issues here.
Using this content manager - https://gvcalligraphy-preview.netlify.app/admin/#/collections/Pages
I was editing a page (possibly Workshops) in Rich Text mode and pressed Shift-Enter to insert a line break. I completely lost the Content Manager with the above error message.
I don't have any screenshots to show.
Editing in Markdown mode did not cause any problems.

Another problem with the Content manager - Inspect Console shows errors like these when I open any page on the site for editing:
Sent invalid data to remark. Plugin: image. Value: Artist: Annie Barnhardt. Data: {"image":"/img/annieb_forever_young.jpg","alt":"Artist: Annie Barnhardt"} 17 decap-cms.js:443:29518
Sent invalid data to remark. Plugin: image. Value: Artist: Annie Barnhardt. Data: {"image":"/img/annieb_forever.jpg","alt":"Artist: Annie Barnhardt"} 2 decap-cms.js:443:29518
Sent invalid data to remark. Plugin: image. Value: . Data: {"image":"/img/legacies_sponsorlogo.jpg","alt":""} 21 decap-cms.js:443:29518
Sent invalid data to remark. Plugin: image. Value: Artist: Annie Barnhardt. Data: {"image":"/img/annieb_forever_young.jpg","alt":"Artist: Annie Barnhardt"} 17 decap-cms.js:443:29518
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: https://unpkg.com/decap-cms@%5E3.1.2/dist/decap-cms.js
Source Map URL: decap-cms.js.map

@martinjagodic
Copy link
Member

@gvcalligraphy are you the developer working on this website? Sent invalid data to remark error usually means there's a problem with your frontmatter.

@gvcalligraphy
Copy link
Author

gvcalligraphy commented Feb 4, 2025 via email

@gvcalligraphy
Copy link
Author

That error also shows up on the main Content Manager page, before I open any webpages, even though there are no images on that page.
https://gvcalligraphy-preview.netlify.app/admin/#/collections/Pages
Sent invalid data to remark.

And this error:
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: https://unpkg.com/decap-cms@%5E3.1.2/dist/decap-cms.js
Source Map URL: decap-cms.js.map

I'm letting the developer know.

@martinjagodic martinjagodic reopened this Feb 5, 2025
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

2 participants