Skip to content

[ Server ] Error: Field type 'tabs' is not allowed inside 'users' #14

@thijssmudde

Description

@thijssmudde

Plugin version

^0.6.1

Payload version

3.22.0

Auth.js version

5.0.0-beta.25

Describe the bug

.next/server/chunks/ssr/node_modules__pnpm_a5ca89._.js:32610
throw new Error(Field type '${field.type}' is not allowed inside '${path}');
^

Error: Field type 'tabs' is not allowed inside 'users'

I'm using a TabsField for displaying users in PayloadCMS. This plugin gives the error above.

 fields: [
    // implements tas
    TabsField({
      tabs: [
        {
          label: "User",
          fields: [
            ImageField({
              relationTo: COLLECTION_NAMES["collections"]["avatars"],
              name: "avatar",
              label: "Avatar",
              required: false,
            }),
            TextField({ name: "fullName", label: "Full name" }),

To Reproduce

  1. Add tabs field to users collection
  2. Reload app
  3. Crash

Additional context / Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions