Version 0.0.6: This version requires authentication for all operations. Consider upgrading to 0.0.7+ for free single file conversions.
Prerequisites
Before you begin, make sure you have:1
Valid Account
Create an account at nextlovable.com
Your First Migration
Let’s start with migrating a simple React project:Step 1: Prepare Your React Project
Make sure you have a React project with React Router. Here’s a sample structure:Step 2: Preview the Migration (Dry Run)
See what changes will be made without modifying anything:Step 3: Execute the Migration
Run the actual migration:- Create a new Next.js project in
./my-next-app
- Convert React Router to Next.js App Router
- Add ‘use client’ directives where needed
- Install all dependencies
- Set up the proper Next.js configuration
Step 4: Review and Test
1
Navigate to the new project
2
Start the development server
3
Open in browser
Visit http://localhost:3000 to see your migrated app
Command Structure (v0.0.6)
Version 0.0.6 uses a simpler command structure:Available Options
Path to your React application
Where to create the new Next.js project (optional)
Simulate migration without making changes
Skip confirmation prompts
Install dependencies after migration
What Gets Converted
React Router → Next.js Navigation
React Router → Next.js Navigation
Component Structure
Component Structure
- Automatic ‘use client’ directive addition
- Page components moved to app directory
- Layout components properly structured
Build Configuration
Build Configuration
- Vite config → Next.js config
- Package.json scripts updated
- Dependencies migrated
Example Migration
Limitations in v0.0.6
Version 0.0.6 Limitations:
- Requires authentication for all operations
- No single file conversion mode
- Limited transformation options
- No granular control over conversions
Upgrade Benefits
Consider upgrading to version 0.0.7+ for:Free Features
Single file conversions without authentication
Better Control
Granular transformation options
Improved CLI
Subcommand structure (convert, migrate)
Enhanced Performance
Faster processing and better error handling
Common Issues
Migration Incomplete
Migration Incomplete
- Check source directory permissions
- Ensure target directory is writable
- Verify sufficient disk space
- Review error messages for specific issues
Generated App Won't Start
Generated App Won't Start
- Run
npm install
in the target directory - Check for TypeScript errors
- Review Next.js configuration
- Clear Next.js cache:
rm -rf .next
What’s Next?
1
Explore the Generated Code
Review how your React components were converted
2
Test All Routes
Navigate through your app to ensure everything works
3
Deploy
Deploy your new Next.js app to your preferred platform
4
Consider Upgrading
Upgrade to version 0.0.7+ for enhanced features