Skip to content

Error when accessing versions: "No client field found" for deeply nested fields in blocks with tabs #12376

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

Open
timothylp opened this issue May 11, 2025 · 1 comment
Assignees

Comments

@timothylp
Copy link

Describe the Bug

When trying to access the versions of a document that contains a blocks field, and one of the blocks includes a tabs field, the following error occurs:

Error: No client field found for pages._index-0-0-0

This seems related to deep nesting inside blocks → tabs → fields, as referenced in #11458, but it's still reproducible with additional depth.

Link to the code that reproduces this issue

https://github.com/timothylp/payload-issue-reproduction/tree/bug/versions-break-tabs

Reproduction Steps

  1. Create a collection with a blocks field
  2. Define a block that includes a tabs field
  3. Inside one of the tabs, add any regular field (e.g. text)
  4. Create a document using that block and fill in the inner field
  5. Try to view the document’s version history
  6. Payload throws: Error: No client field found for pages._index-0-0-0

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Binaries:
  Node: 20.18.2
  npm: N/A
  Yarn: N/A
  pnpm: 9.15.4
Relevant Packages:
  payload: 3.37.0
  next: 15.3.0
  @payloadcms/email-nodemailer: 3.37.0
  @payloadcms/graphql: 3.37.0
  @payloadcms/next/utilities: 3.37.0
  @payloadcms/payload-cloud: 3.37.0
  @payloadcms/plugin-cloud-storage: 3.37.0
  @payloadcms/richtext-lexical: 3.37.0
  @payloadcms/storage-s3: 3.37.0
  @payloadcms/translations: 3.37.0
  @payloadcms/ui/shared: 3.37.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32486
  Available CPU cores: 32
@timothylp timothylp added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. labels May 11, 2025
@github-actions github-actions bot removed the validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. label May 11, 2025
@devj3ns
Copy link

devj3ns commented May 21, 2025

I can also reproduce this error in Payload version 3.37.0 and 3.38.0.

Exception details
[10:23:46] ERROR: No client field found for services._index-0-0-0
    clientFieldKey: "services._index-0-0-0"
    clientSchemaMapKeys: [
      "services",
      "services.slug",
      "services.parent",
      "services.path",
      "services.breadcrumbs",
      "services.breadcrumbs._index-0",
      "services.breadcrumbs.slug",
      "services.breadcrumbs.path",
      "services.breadcrumbs.label",
      "services.breadcrumbs.id",
      "services.title",
      "services.hero",
      "services.hero.title",
      "services.hero.subTitle",
      "services.hero.teaser",
      "services.hero._index-3",
      "services.hero.image",
      "services.hero.video",
      "services.hero.ctaLabel",
      "services.teaserSection",
      "services.teaserSection.title",
      "services.teaserSection.description",
      "services.teaserSection.description.lexical_internal_feature.link.fields.text",
      "services.teaserSection.description.lexical_internal_feature.link.fields.linkType",
      "services.teaserSection.description.lexical_internal_feature.link.fields.url",
      "services.teaserSection.description.lexical_internal_feature.link.fields.doc",
      "services.teaserSection.description.lexical_internal_feature.link.fields.newTab",
      "services.teaserSection.description.lexical_internal_feature.link.fields",   
      "services.teaserSection.image",
      "services.bookingSection",
      "services.bookingSection.title",
      "services.bookingSection.info",
      "services.bookingSection.info.description",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields.text",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields.linkType",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields.url",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields.doc",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields.newTab",
      "services.bookingSection.info.description.lexical_internal_feature.link.fields",
      "services.bookingSection.booking",
      "services.bookingSection.booking.type",
      "services.bookingSection.booking.eventType",
      "services.bookingSection.booking.image",
      "services.bookingSection.booking.infoText",
      "services.bookingSection.booking.buttons",
      "services.bookingSection.booking.buttons.link",
      "services.bookingSection.booking.buttons.link._index-0",
      "services.bookingSection.booking.buttons.link._index-0-0",
      "services.bookingSection.booking.buttons.link._index-0-0-0",
      "services.bookingSection.booking.buttons.link.type",
      "services.bookingSection.booking.buttons.link.page",
      "services.bookingSection.booking.buttons.link.url",
      "services.bookingSection.booking.buttons.link.popup",
      "services.bookingSection.booking.buttons.link.anchor",
      "services.bookingSection.booking.buttons.link.label",
      "services.bookingSection.booking.buttons.link._index-0-1",
      "services.bookingSection.booking.buttons.link._index-0-1-0",
      "services.bookingSection.booking.buttons.link.style",
      "services.bookingSection.booking.buttons.link.icon",
      "services.bookingSection.booking.buttons.id",
      "services.relatedServicesSection",
      "services.relatedServicesSection.relatedServicesSection",
      "services.relatedServicesSection.relatedServicesSection.title",
      "services.relatedServicesSection.relatedServicesSection.subTitle",
      "services.relatedServicesSection.relatedServicesSection.services",
      "services.relatedServicesSection.relatedServicesSection.id",
      "services.relatedServicesSection.relatedServicesSection.blockName",
      "services.testimonialsSection",
      "services.testimonialsSection.testimonialsSection",
      "services.testimonialsSection.testimonialsSection.title",
      "services.testimonialsSection.testimonialsSection.subTitle",
      "services.testimonialsSection.testimonialsSection.videos",
      "services.testimonialsSection.testimonialsSection.videos._index-0",
      "services.testimonialsSection.testimonialsSection.videos.video",
      "services.testimonialsSection.testimonialsSection.videos.name",
      "services.testimonialsSection.testimonialsSection.videos.id",
      "services.testimonialsSection.testimonialsSection.audios",
      "services.testimonialsSection.testimonialsSection.audios._index-0",
      "services.testimonialsSection.testimonialsSection.audios.audio",
      "services.testimonialsSection.testimonialsSection.audios.name",
      "services.testimonialsSection.testimonialsSection.audios.id",
      "services.testimonialsSection.testimonialsSection.texts",
      "services.testimonialsSection.testimonialsSection.texts.text",
      "services.testimonialsSection.testimonialsSection.texts.id",
      "services.testimonialsSection.testimonialsSection.cta",
      "services.testimonialsSection.testimonialsSection.cta.title",
      "services.testimonialsSection.testimonialsSection.cta.subTitle",
      "services.testimonialsSection.testimonialsSection.cta.link",
      "services.testimonialsSection.testimonialsSection.cta.link._index-0",        
      "services.testimonialsSection.testimonialsSection.cta.link.type",
      "services.testimonialsSection.testimonialsSection.cta.link.page",
      "services.testimonialsSection.testimonialsSection.cta.link.anchor",
      "services.testimonialsSection.testimonialsSection.cta.id",
      "services.testimonialsSection.testimonialsSection.id",
      "services.testimonialsSection.testimonialsSection.blockName",
      "services.faqSection",
      "services.faqSection.faqSection",
      "services.faqSection.faqSection.title",
      "services.faqSection.faqSection.faqs",
      "services.faqSection.faqSection.faqs.question",
      "services.faqSection.faqSection.faqs.answer",
      "services.faqSection.faqSection.faqs.id",
      "services.faqSection.faqSection.id",
      "services.faqSection.faqSection.blockName",
      "services.ctaSection",
      "services.ctaSection.title",
      "services.ctaSection.subTitle",
      "services.ctaSection.bookButtonLabel",
      "services.ctaSection.backgroundImage",
      "services.summary",
      "services.summary.title",
      "services.summary.subTitle",
      "services.summary.description",
      "services.summary.image",
      "services.meta",
      "services.meta.overview",
      "services.meta.title",
      "services.meta.description",
      "services.meta.image",
      "services.meta.preview",
      "services.meta.alternatePaths",
      "services.meta.alternatePaths.hreflang",
      "services.meta.alternatePaths.path",
      "services.meta.alternatePaths.id",
      "services.updatedAt",
      "services.createdAt",
      "services._status",
      "services.id"
    ]
    parentPath: "bookingSection.booking.buttons.0.link._index-0"
    parentSchemaPath: "bookingSection.booking.buttons.link"
    path: "bookingSection.booking.buttons.0.link._index-0-0-0"
    schemaPath: "_index-0-0-0"
 ⨯ [Error: No client field found for services._index-0-0-0] {
  digest: '3092849264'
}

@AlessioGr AlessioGr self-assigned this May 21, 2025
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label May 21, 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

3 participants