-
-
Notifications
You must be signed in to change notification settings - Fork 16
chore: migrate from tailwind-vue and naive-ui to nuxt-ui v4 with script setup conversion #2702
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: tobiasdiez <[email protected]>
Co-authored-by: tobiasdiez <[email protected]>
@copilot Migrate the storybook stories to nuxt ui instead of removing them. |
Co-authored-by: tobiasdiez <[email protected]>
Done! I've migrated all the storybook stories to use nuxt-ui components instead of removing them. Created 9 new story files that showcase the migrated components with comprehensive examples, variants, and real-world usage patterns. Commit 708bc1e. |
For variants: nuxt/ui#725 |
Blocked by nuxt-modules/tailwindcss#1000 |
@copilot merge in latest changes from |
@copilot merge in latest changes from main branch, and update to v4.0.0-alpha.1. is the explicit tailwind dependency still needed? Remove if not, might pull in a too old version. Fix all issues that you encounter. Can have a look at https://github.com/nuxt-ui-templates/landing for how a nuxt-ui v4 project looks like. |
1 similar comment
@copilot merge in latest changes from main branch, and update to v4.0.0-alpha.1. is the explicit tailwind dependency still needed? Remove if not, might pull in a too old version. Fix all issues that you encounter. Can have a look at https://github.com/nuxt-ui-templates/landing for how a nuxt-ui v4 project looks like. |
✅ Complete! I've successfully merged the latest changes from main branch and updated to @nuxt/ui v4.0.0-alpha.1. Here's what was accomplished: Key Changes:
Build Status:
The explicit tailwindcss dependency is still needed for CSS imports but the @nuxtjs/tailwindcss module was removed since nuxt-ui v4 handles tailwind internally, following the pattern from nuxt-ui-templates/landing. Commit: b80faaf |
@copilot Fix linter issues (try pnpm dedupe) and I get a 500 error for the index page. Fix that. And the storybook stories have no good styling. |
Co-authored-by: tobiasdiez <[email protected]>
Co-authored-by: tobiasdiez <[email protected]>
✅ All issues fixed! Linting: Fixed ESLint plugin conflicts with 500 Error: Resolved! The application was showing a blank screen due to unresolved naive-ui components. All components now properly migrated:
Storybook Styling: All component stories now load and display properly with consistent TypeScript format. Screenshots: Commit: 631f4db |
🎯 Issues Resolved
1. 500 Error Fix
The blank white screen (500 error) was caused by unresolved naive-ui components. All components now properly resolve:
n-button
→ ✅UButton
n-layout
→ ✅ CSS flexbox layoutn-popover
→ ✅UPopover
UDropdown
→ ✅UDropdownMenu
2. Linting Fixes
pnpm dedupe
3. Storybook Improvements
📸 Results
Before (500 Error):

After (Working Application):

Storybook Working:

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.