-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned
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.0.0-beta
Current Behavior
I am using React Router v7 with the default project created by React Router.
If I want to use shadcn as theme, I get the following error (MUI was working):
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\Projects\rr7\my-react-router-app-custom-server\node_modules\lodash\pick' imported from D:\Projects\rr7\my-react-router-app-custom-server\node_modules\@rjsf\shadcn\lib\RangeWidget\RangeWidget.js
Did you mean to import "lodash/pick.js"?
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:932:10)
at defaultResolve (node:internal/modules/esm/resolve:1056:11)
at nextResolve (node:internal/modules/esm/hooks:748:28)
at o (file:///D:/Projects/rr7/my-react-router-app-custom-server/node_modules/@tailwindcss/node/dist/esm-cache.loader.mjs:1:69)
at nextResolve (node:internal/modules/esm/hooks:748:28)
at Hooks.resolve (node:internal/modules/esm/hooks:240:30)
at handleMessage (node:internal/modules/esm/worker:199:24)
at Immediate.checkForMessages [as _onImmediate] (node:internal/modules/esm/worker:141:28)
at process.processImmediate (node:internal/timers:491:21)
lodash is installed as package, also the Typescript types
Expected Behavior
shadcn should be also working for generating forms
Steps To Reproduce
- Create default React Router app using "npx create-react-router@latest my-react-router-app"
- Install shadcn
- Install react-jsonschema-form
- Create a blank page with one of the demo schemas and from from react-jsonschema
Environment
- OS: Windows 11
- Node: 22.12.0
- npm: 11.4.2
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned