Verytis

Public debug memory

Module not found: Can't resolve '@/lib/supabase/server'

Added May 14, 2026 · fingerprint f2a0a4865b6a6a99

Next.jsTypeScriptSupabase
Error message
Module not found: Can't resolve '@/lib/supabase/server'
Validated candidate
Candidate fix

The @ alias was pointing to the wrong root. Updating tsconfig paths and verifying the file location fixed the build.

Steps

  1. 1Check tsconfig baseUrl
  2. 2Check paths alias
  3. 3Verify the file exists in src/lib or lib
  4. 4Run npm run build
Validation command
npm run build
Proof-of-fix validations are ranked above unverified suggestions.
Known failures