-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
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?
chakra-ui
Version
6.0.0-beta.14
Current Behavior
When using Chakra UI theme like below:
import Form from "@rjsf/chakra-ui";
it results in error:
Could not resolve "lucide-react"
node_modules/@rjsf/chakra-ui/lib/AddButton/AddButton.js:4:25:
4 │ import { PlusIcon } from 'lucide-react';
Expected Behavior
Able to use Chakra UI theme
Steps To Reproduce
- Install version 6.0.0-beta.14
npm install @rjsf/[email protected] - Import the Form
import Form from "@rjsf/chakra-ui";
Environment
- OS: Ubuntu 22.04
- Node: 22.14.0
- npm: 10.9.2Anything else?
I think this can be fixed by moving lucide-react from devDependencies to dependencies
As a workaround, install lucide-react manually