Files
stack/MIGRATION_ERRORS.md
2026-01-29 22:00:14 -06:00

1.8 KiB

Jarvis FE Migration Errors Summary

Web App Errors

1. Missing Dependencies

  • socket.io-client - needed for WebSocketProvider
  • better-auth and better-auth-credentials-plugin/client - needed for auth-client

2. Missing UI Component Imports

Components using @/components/ui/* but should use @mosaic/ui:

  • @/components/ui/button@mosaic/ui (Button exists)
  • @/components/ui/input@mosaic/ui (Input exists)
  • @/components/ui/textarea@mosaic/ui (Textarea exists)
  • @/components/ui/select@mosaic/ui (Select exists)
  • @/components/ui/card@mosaic/ui (Card exists)
  • @/components/ui/badge@mosaic/ui (Badge exists)
  • @/components/ui/label → needs to be created or imported from another source
  • @/components/ui/switch → needs to be created or imported from another source
  • @/components/ui/alert-dialog → needs to be created or imported from another source

3. Missing Type Exports from @mosaic/shared

  • Personality type not exported
  • FormalityLevel type not exported

4. TypeScript strict mode errors (exactOptionalPropertyTypes)

Multiple errors related to passing Type | undefined where Type is expected

5. Missing utility exports

  • @mosaic/ui/lib/utils import fails (cn utility function)

API App Errors

1. Missing Dependencies

  • ollama - LLM service
  • @nestjs/websockets - WebSocket support
  • socket.io - WebSocket server
  • @nestjs/mapped-types - DTO utilities

2. Prisma Client Not Generated

All Prisma-related errors stem from missing generated client

Resolution Plan

  1. Generate Prisma client
  2. Add missing dependencies
  3. Fix UI component imports
  4. Add missing type exports
  5. Fix TypeScript strict mode errors
  6. Create missing UI components
  7. Test build