General
Troubleshooting

Codebase

Learn about codebase troubles and their solutions.

Build errors or TypeScript errors

Make sure you've installed all dependencies:

Terminal
npm install

If errors persist, try clearing the Next.js cache:

Terminal
rm -rf .next
npm run build

Port already in use

If port 3000 is already in use, you can change it:

Terminal
PORT=3001 npm run dev

Or update the port in your package.json scripts.

Module not found errors

If you're seeing module not found errors:

  1. Make sure all dependencies are installed: npm install
  2. Check that the import path is correct
  3. Restart your development server
  4. Clear the Next.js cache: rm -rf .next