Skip to content

Troubleshooting

Check for port conflict:

Terminal window
lsof -i :1334

Kill conflicting process or set a temporary port override before start.

Re-generate client and apply migrations:

Terminal window
npx prisma generate
npx prisma migrate deploy

Confirm DATABASE_URL points at expected SQLite file.

Run explicit typecheck:

Terminal window
npx tsc --noEmit

next.config.ts currently ignores TS errors during build.

Loading GET /api/cards triggers default category creation when DB is empty. Hit that endpoint and refresh UI.

Inspect logs:

Terminal window
docker compose logs -f

Healthcheck depends on GET /api/cards. Failures usually mean startup migration or DB path issues.

Electron Packaged Build Fails to Load Data

Section titled “Electron Packaged Build Fails to Load Data”

Verify:

  • Migration folders are bundled (prisma/migrations)
  • Database path in user data directory is writable
  • Startup logs show migration execution

If imported data misses image or file payload fields, this is a known limitation of current JSON export schema.

Use raw SQLite backups for full fidelity.

Remember filter interaction order:

  1. View mode filter
  2. Search query
  3. Tag logic (AND/OR)

If debugging, inspect useSearch behavior directly.