Tutorial
Troubleshooting
Solutions to common issues when running TikShip
Port Already in Use
# Kill process on port 3000
npx kill-port 3000
# Or use a different port
PORT=3001 npm run devDatabase Connection Error
- Verify your database is running.
- Check
DATABASE_URLin.envis correct. - Test the connection:
npm run db:studioBuild Errors
Clear the Next.js cache and rebuild:
rm -rf .next
npm run buildModule Not Found
Re-install dependencies:
rm -rf node_modules package-lock.json
npm installPrisma Client Out of Sync
After pulling schema changes, regenerate the client:
npm run db:generateEnvironment Variables Not Picked Up
Next.js reads .env at startup. After any change to .env, restart the dev server:
# Stop the server (Ctrl+C), then:
npm run devAdmin Login Fails
- If you changed the password and forgot it, reset it:
npm run db:reset-admin-password