General
Troubleshooting
Codebase
Learn about codebase troubles and their solutions.
Build errors or TypeScript errors
Make sure you've installed all dependencies:
Terminal
npm installIf errors persist, try clearing the Next.js cache:
Terminal
rm -rf .next
npm run buildPort already in use
If port 3000 is already in use, you can change it:
Terminal
PORT=3001 npm run devOr update the port in your package.json scripts.
Module not found errors
If you're seeing module not found errors:
- Make sure all dependencies are installed:
npm install - Check that the import path is correct
- Restart your development server
- Clear the Next.js cache:
rm -rf .next