-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
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