Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue with @rjsf/shadcn theme #4814

Closed
Closed
Labels
@SubhrajitDG

Description

Prerequisites

What theme are you using?

shadcn

Version

6.x

Current Behavior

Trying to implement shadcn theme and i keep getting the following error when importing Form from @rjsf/shadcn, it's most likely not a schema issue because i am using the example schema given in the rjsf playground

Unexpected Application Error! Cannot read properties of undefined (reading '$id') TypeError: Cannot read properties of undefined (reading '$id') at idGenerator (http://localhost:5173/node_modules/.vite/deps/chunk-OU2VTJZS.js?v=feb7b462:22396:47) at titleId (http://localhost:5173/node_modules/.vite/deps/chunk-OU2VTJZS.js?v=feb7b462:22412:10) at ObjectFieldTemplate (http://localhost:5173/node_modules/.vite/deps/@rjsf_shadcn.js?t=1761307305925&v=feb7b462:26898:150) at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:11596:26) at mountIndeterminateComponent (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:14974:21) at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:15962:22) at beginWork1ドル (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:19806:22) at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:19251:20) at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:19190:13) at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-KPD4VVXB.js?v=feb7b462:19169:15)

these are the versions
"@rjsf/core": "^6.0.0-beta.22",
"@rjsf/shadcn": "^6.0.0-beta.10",
"@rjsf/utils": "^6.0.0-beta.22",
"@rjsf/validator-ajv8": "^6.0.0-beta.22",

Expected Behavior

Should render the form without any erros

Steps To Reproduce

No response

Environment

- OS: macOs Tahoe 
- Node: 22.11.0
- npm: 10.9.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /