-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - HeroUI not working when using in an npm package #4894
Comments
please share a minimal reproducible environment. |
@wingkwong i just created a public repo: https://github.com/szbphoto/herouibug The bug can be found there.
|
Same issue here! fresh nextjs project |
Another note, if i add a modal into the NEXTJS project that isOpen prop is true then the npm package's modal opens too but without that it will not |
i was using tailwind v4, switching back to 3 fixed it |
The sample i provided uses v3 |
This error is because currently HeroUI don't support Tailwind v4. Switch back to Tailwind v3 and you'll be fine. There's an issue that mentions this #4644. |
I still using tailwind v3 |
Tailwind v3 will fine |
I already said 3 times and you can see in the example that i use tailwind v3 so it is not a solution |
@wingkwong any update regarding to this or workaround or like anything that i can do to continue my work until this is not fixed yet? |
HeroUI Version
2.7.2
Describe the bug
I just created an npm package to add the frequiently used components like, auth modal, buttons and etc.
So i Tried to add HeroUI provider inside the next project and also tried to add inside the npm package but the modals, dropdown adn other components not working, not opening.
But if i add a modal inside the next project it works fine but in the npm package it does not open.
Now I cannot create an npm package for the most used components.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
I want to use heroui components in an npm package and work just how i want it to work.
Screenshots or Videos
You can see the modal is there, but not displaying, tried z index and everything but it does not open, but if i add a modal inside the nextjs project that isOpen then the modal which is inside my npm package also open, but without that it will not.
Operating System Version
MacOS, Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: