-
I'm trying to use NextUI components to create some own components to my web applications. I have an issue with Select and Popover. I have this code:
When I use this code inside my app, it works: the Select is shown inside the popover and when I click the select it drops down the items. When I put this component inside a library, with Typescript, React and Vite, it doesn't work: when I click the select the popover closes. I believe I'm doing something wrong but I don't know what. I'm using this tsconfig.json in my library:
Can anybody help me? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
which version are you using? |
Beta Was this translation helpful? Give feedback.
-
Solved. It was a problem with the vite.config.ts. You must add @nextui-org/react, framer-motion and tailwindcss to externalOptions:
|
Beta Was this translation helpful? Give feedback.
-
The real problem now is the 2.4.0 version. You have an example (https://stackblitz.com/edit/vitejs-vite-amcxcj). Thank you for your support and your work. |
Beta Was this translation helpful? Give feedback.
-
It's solved with 2.4.2 version. Thank you. |
Beta Was this translation helpful? Give feedback.
It's solved with 2.4.2 version. Thank you.