Installation Issues
Command Not Found
Problem:create-nextjs-dapp: command not found
Solution: Make sure you’re using npx to run the command:
Permission Denied
Problem:EACCES: permission denied
Solution: The directory is not writable. The CLI checks for write permissions:
src/cli/prompts.ts:140-146
Fix by choosing a different directory or adjusting permissions:
Directory Already Exists
Problem:Directory contains files that could conflict
Solution: The CLI detects existing files that would be overwritten. You can:
- Use a different project name
- Remove the existing directory
- Allow the CLI to overwrite in interactive mode
src/cli/prompts.ts:149-180
Templates Not Found
Problem:Base template not found or Template for [wallet] on [chain] not found
Solution: This indicates a corrupted installation. Reinstall the package:
src/generators/project.ts:42-72
Wallet Connection Issues
Wallet Not Connecting
Problem: Wallet button doesn’t open or connection fails Solution: Check your environment variables:Wrong Network
Problem: Wallet connects to wrong network Solution: Configure the correct chains in your provider setup. Check yourapp/layout.tsx or provider configuration file.
RPC Errors
Problem:RPC Error: Too Many Requests or similar
Solution: You’re hitting rate limits on the default RPC. Add your own RPC endpoints:
Build Errors
Type Errors
Problem: TypeScript compilation errors Solution: Ensure all dependencies are installed:Module Not Found
Problem:Cannot find module '@/...' or similar
Solution: The alias paths are configured in tsconfig.json. Verify it exists:
Dependency Version Conflicts
Problem:Conflicting peer dependencies warnings
Solution: The CLI uses tested versions. If you encounter conflicts:
src/config/dependencies.ts for official versions
Next.js Errors
Problem:Error: Hydration failed or Text content does not match
Solution: This often happens with client-side wallet connections. Ensure you’re using dynamic imports where needed:
Package Manager Issues
Wrong Package Manager Detected
Problem: CLI detects the wrong package manager Solution: Use the override flags:src/cli/args.ts:76-83
Installation Failed
Problem: Dependencies fail to install with--install flag
Solution: The CLI will show a warning but continue. Install manually:
src/helpers/install.ts:4-24
Runtime Errors
Invalid Project Name
Problem:Invalid project name "..."
Solution: Project names must follow npm naming conventions:
- All lowercase
- No spaces (use hyphens)
- Start with a letter
- No special characters except
-and_
src/cli/args.ts:88-94
Invalid Chain or Wallet
Problem:Invalid chain "..." or Invalid wallet provider "..."
Solution: Use supported values:
src/cli/args.ts:28-69 and src/config/wallets.ts:3-44
Incompatible Wallet and Chain
Problem: Wallet doesn’t support the selected chain Solution: Check compatibility:- EVM only: RainbowKit, ConnectKit, GetPara
- Solana only: Wallet Adapter
- Both: Privy, Dynamic, Reown, Thirdweb
src/config/wallets.ts:49-68
Getting Help
Check the Documentation
GitHub Issues
If you encounter a bug or have a feature request:- Check existing issues: github.com/0xmihirsahu/create-nextjs-dapp/issues
- Create a new issue with:
- Your command and flags
- Error message (full output)
- Operating system and Node.js version
- Expected vs actual behavior
Common Debug Commands
Update to Latest Version
src/index.ts:10-55