Installation Issues
Dependencies fail to install
Solution 1: Skip postinstall scriptsAfter upgrading Bun, restart your terminal to ensure the new version is active.
Module resolution errors
If you see errors about missing modules or path aliases not working: Check TypeScript configurationDatabase Issues
Cannot connect to PostgreSQL
Check your connection string format-
Missing SSL mode: Some providers require SSL
- Wrong port: Default is 5432, but some providers use different ports
- Firewall blocking: Ensure your IP is whitelisted (especially with cloud providers)
-
Database doesn’t exist: Create the database first
Migration errors
Problem: Migrations fail to apply-
Check if migrations were already applied:
-
If tables exist, you may need to reset (⚠️ destroys data):
-
For production, create a new migration:
Database connection pool exhausted
Solution:-
Restart your development server
- Check connection limits in your PostgreSQL provider settings
-
Reduce connection pool size in
packages/db/src/index.tsif needed
Development Server Issues
Port already in use
web/next/package.json:
api/hono/src/index.ts, update the port configuration.
Hot reload not working
Sometimes file watching doesn’t work properly, especially on Linux or in Docker.
Turborepo cache issues
If changes aren’t reflected or builds are stale:Type Safety Issues
Frontend doesn’t recognize API types
Solution 1: Build the backendapi/hono/src/index.ts:
Cmd/Ctrl + Shift + P → “TypeScript: Restart TS Server”
Solution 4: Check the client import
In web/next/src/lib/api/client.ts:
Zod validation errors
- Required fields missing: Check all required fields are provided
- Type mismatch: Ensure data types match schema (string vs number)
- Date formats: Use ISO strings for dates
- Nested objects: Validate nested structure matches schema
Authentication Issues
OAuth callback errors
Problem: “Redirect URI mismatch” For GitHub:- Callback URL:
http://localhost:4000/api/auth/callback/github - For production:
https://your-api-domain.com/api/auth/callback/github
- Callback URL:
http://localhost:4000/api/auth/callback/google - For production:
https://your-api-domain.com/api/auth/callback/google
.env file:
Session not persisting
Problem: User gets logged out on page refresh Solution 1: Check BETTER_AUTH_SECRET.env:
HONO_TRUSTED_ORIGINS includes your frontend URL:
CORS errors during authentication
HONO_TRUSTED_ORIGINS is set correctly in .env:
Build & Deployment Issues
Build fails with type errors
-
Check types locally first:
-
Build packages in order:
-
Clear build cache:
Vercel deployment fails
Problem: Build succeeds locally but fails on VercelEnsure all environment variables are set in Vercel dashboard.
- ✅ All
.envvariables added to Vercel - ✅ Build command is correct:
bun run build - ✅ Output directory is correct:
web/next/.next(for Next.js) - ✅ Node version matches (use
enginesinpackage.json) - ✅ Database is accessible from Vercel (check IP whitelist)
- Missing build command: Set to
cd ../.. && bun install && bun run build - Wrong root directory: Set to
web/nextfor frontend,api/honofor backend - Environment variables: Must be set for each deployment (preview and production)
Docker build fails
Problem: Docker image won’t build-
Rebuild without cache:
-
Check .dockerignore:
Ensure
node_modulesand build artifacts are ignored -
Verify Docker Compose version:
Performance Issues
Slow initial load
First load in development is always slower due to compilation. Production builds are optimized.
-
Enable Turbopack (experimental):
In
web/next/package.json: -
Reduce hot reload scope:
Only run the package you’re working on:
High memory usage
During development: This is normal with Turborepo running multiple packages. You can:-
Run individual packages:
-
Increase Node memory limit:
IDE & Editor Issues
VS Code doesn’t recognize path aliases
Problem: Imports using@/ or @packages/ show errors
Solution:
-
Ensure TypeScript is using workspace version:
- Open any
.tsfile - Click TypeScript version in status bar
- Select “Use Workspace Version”
- Open any
-
Restart TS Server:
Cmd/Ctrl + Shift + P→ “TypeScript: Restart TS Server” -
Check tsconfig.json paths:
ESLint/Oxlint errors
Problem: Linting fails or shows incorrect errors Solution:-
Run linter:
-
Fix auto-fixable issues:
-
Check Oxlint config:
Configuration is in
oxlint.jsonat the root
Still Having Issues?
Check FAQ
Review frequently asked questions for quick answers.
Open an Issue
Report bugs or ask for help on GitHub.
Review Documentation
Check the full documentation for detailed guides.
Follow Updates
Follow @nrjdalal on X for updates and tips.