Common Issues
Installation Problems
Command not found: next-lovable
Command not found: next-lovable
Problem: After installation, running
next-lovable
shows “command not found”Solutions:- Restart your terminal - This refreshes the PATH
-
Check if npm global bin is in PATH:
The npm prefix path should be in your PATH
-
Add npm global bin to PATH (if missing):
-
Use npx as alternative:
Permission denied errors
Permission denied errors
Problem: Getting permission errors during global installationSolutions:
-
Configure npm to use a different directory (recommended):
-
Use sudo (less secure):
- Use a Node.js version manager like nvm, which handles permissions better
Node.js version incompatibility
Node.js version incompatibility
Problem: Errors about Node.js version being too oldSolutions:
-
Check your Node.js version:
You need 18.x or higher
-
Update Node.js:
- Visit nodejs.org for official installer
- Or use a version manager like nvm:
-
For Ubuntu/Debian:
Conversion Issues
File not found or cannot read file
File not found or cannot read file
Problem: Error reading the file you’re trying to convertSolutions:
-
Check file path is correct:
-
Use absolute path:
-
Check file permissions:
-
Make sure file extension is supported:
- Supported:
.tsx
,.ts
,.jsx
,.js
- Not supported:
.vue
,.svelte
, etc.
- Supported:
Syntax error in component
Syntax error in component
Problem: Tool reports syntax errors in your React componentSolutions:
-
Fix syntax errors first:
-
Check for unsupported syntax:
- Experimental JavaScript features
- Non-standard JSX patterns
- Mixing TypeScript and JavaScript incorrectly
-
Simplify complex patterns:
- Extract complex logic to separate functions
- Break down large components
- Remove experimental decorators
Conversion results look wrong
Conversion results look wrong
Problem: The converted code doesn’t work as expectedSolutions:
-
Use dry-run first to preview:
-
Apply transformations incrementally:
-
Check for complex routing patterns:
- Dynamic routes with complex parameters
- Nested routing with custom logic
- Route guards and middleware
-
Manual review needed for:
- Custom hooks that depend on React Router internals
- Complex state management patterns
- Third-party library integrations
'use client' directive not added when needed
'use client' directive not added when needed
Problem: Component uses client-side features but no directive was addedSolutions:
-
Manually apply client transformation:
-
Check for these patterns that need ‘use client’:
- React hooks (
useState
,useEffect
, etc.) - Event handlers (
onClick
,onChange
, etc.) - Browser APIs (
window
,document
,localStorage
) - Third-party client libraries
- React hooks (
-
Add manually if needed:
Migration Issues
Authentication failed
Authentication failed
Problem: Cannot authenticate for full project migrationSolutions:
-
Check your API key:
-
Re-authenticate:
Enter your API key from nextlovable.com dashboard
-
Verify account status:
- Log into nextlovable.com
- Check if your account is active
- Verify you have credits remaining
-
Check network connection:
Migration fails partway through
Migration fails partway through
Problem: Full project migration stops with errorsSolutions:
-
Use dry-run first:
This identifies issues before making changes
-
Check for blocking issues:
- Syntax errors in source files
- Permission issues with target directory
- Insufficient disk space
- Network connectivity issues
-
Try incremental approach:
-
Clean up and retry:
Generated Next.js project won't start
Generated Next.js project won't start
Problem: The migrated project has errors when running
npm run dev
Solutions:-
Install dependencies:
-
Check Next.js configuration:
Look for any obvious configuration issues
-
Review error messages:
- Missing dependencies
- Import path issues
- TypeScript errors
- CSS/styling conflicts
-
Common fixes:
Performance Issues
Conversion is very slow
Conversion is very slow
Problem: Converting files or projects takes a long timeSolutions:
-
Check file size:
Very large files (>100KB) take longer
-
Break down large files:
- Split large components into smaller ones
- Extract utility functions
- Separate types and interfaces
-
Check network (for migrations):
- Full migrations require API calls
- Slow internet affects migration speed
- Use
--dry-run
for local-only testing
-
System resources:
- Close other applications
- Check available RAM and CPU
- Use faster storage (SSD vs HDD)
High memory usage
High memory usage
Problem: Tool uses too much memory during conversionSolutions:
-
Process files individually:
- Close other applications to free up memory
-
Increase Node.js memory limit:
- Break down large projects into smaller batches
Getting Help
Debug Information
When reporting issues, include this information:Log Files
Enable verbose logging for detailed error information:Support Channels
GitHub Issues
Report bugs and feature requests
Discord Community
Get help from the community
Documentation
Browse all documentation
Frequently Asked Questions
Can I undo a conversion?
Can I undo a conversion?
Short answer: Only if you have backups.Best practices:
- Always use
--dry-run
first - Use
--output
to save to different location - Commit to git before converting
- Use version control to track changes
Why wasn't my complex routing converted?
Why wasn't my complex routing converted?
Some routing patterns are too complex for automatic conversion:
- Custom route guards
- Dynamic imports with complex logic
- Nested routing with conditional rendering
- Integration with state management libraries
Will this work with my custom webpack config?
Will this work with my custom webpack config?
The tool focuses on converting React/Router code, not build configurations.For Vite → Next.js migration:
- Next.js handles most bundling automatically
- Custom webpack configs may need manual porting
- Most Vite plugins have Next.js equivalents
How do I handle custom hooks that use React Router?
How do I handle custom hooks that use React Router?
Custom hooks using React Router internals need manual conversion:
Report a Bug
Found a bug? Please report it with:- Clear description of the problem
- Steps to reproduce the issue
- Expected vs actual behavior
- Sample code that causes the issue
- System information (OS, Node.js version, etc.)