-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: menu break in NextJs production build #2303
Comments
Update Next.js to the latest version. |
@saadeghi I have a similar issue in a create-react-app production build: What can I do? |
@wuarmin can you update all the dependencies (especially the ones about build tool or CSS processing)? If it didn't help, please share a reproduction repo. |
@saadeghi Thanks! An upgrade helped. I don't know which package caused the error. |
What version of daisyUI are you using?
^3.0.2
Describe your issue
Description :
When running locally
menu
link item has the following CSS rules applied :But when once you
build
and serve it the above CSS rules are not added to menu link itemReproduction steps :
Open https://stackblitz.com/edit/daisyui-nextjs-lzc8vy : This is minimal reproduction repo forked from daisyUI nextjs template and I have just copied
menu with icons & badge
Terminate process in terminal and build the app ->
npm run build
Serve the exported build ->
npm run start
You will the menu item are broken vertical instead of being horizontal :
Notes :
This also breaks in Next version
^13.1.5
here is the repo link to test it out : https://github.com/scaffold-eth/scaffold-eth-2Some references discussion :
1 . #2272
2 . #2183
What browsers are you seeing the problem on?
All browsers
Reproduction URL
https://stackblitz.com/edit/daisyui-nextjs-lzc8vy
The text was updated successfully, but these errors were encountered: