Skip to content

lodash/pick throwing ERR_MODULE_NOT_FOUND when using @rjsf/shadcn #4678

@peguerosdc

Description

@peguerosdc

Prerequisites

What theme are you using?

shadcn

Version

6.0.0-beta.11

Current Behavior

I followed the installation guide for the shadcn theme and ended up installing the following packages:

"@rjsf/core": "^6.0.0-beta.11",
"@rjsf/shadcn": "^6.0.0-beta.10",
"@rjsf/utils": "^6.0.0-beta.11",
"@rjsf/validator-ajv8": "^6.0.0-beta.11",

But when I try to run my project containing the following statement import Form from "@rjsf/shadcn"; I get the following error:

 ⨯ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/node_modules/lodash/pick' imported from /node_modules/@rjsf/shadcn/lib/RangeWidget/RangeWidget.js
Did you mean to import "lodash/pick.js"?

Expected Behavior

No response

Steps To Reproduce

I am installing @rjsf/shadcn in an already big project using Nextjs 13, so I'm not sure how to give a project setup to reproduce the issue 😔

Environment

- OS: macOS 15.5
- Node: 24.1.0
- npm: 11.3.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