An error occurred during deployment. Please fix:
The block contains references to missing modules that will caused errors when deployed.
Please make sure the following files exist and have the correct exports:
The types/entry.ts module is missing the following exports:
- Entry as a named export
- frequencyToDbEnum as a named export
- dbEnumToFrequency as a named export
- Frequency as a named export
- frequencyLabels as a named export
- GeneratedOccurrence as a named export
The components/ui/button.tsx module is missing the following exports:
- Button as a named export
- buttonVariants as a named export
- ButtonProps as a named export
The components/ui/input.tsx module is missing the following exports:
- Input as a named export
The components/ui/label.tsx module is missing the following exports:
- Label as a named export
The components/ui/card.tsx module is missing the following exports:
- Card as a named export
- CardContent as a named export
- CardDescription as a named export
- CardHeader as a named export
- CardTitle as a named export
The hooks/use-toast.ts module is missing the following exports:
- useToast as a named export
- toast as a named export
The hooks/useAuth.ts module is missing the following exports:
- useAuth as a named export
The components/ui/sheet.tsx module is missing the following exports:
- Sheet as a named export
- SheetContent as a named export
- SheetHeader as a named export
- SheetTitle as a named export
The components/Layout/AppHeader.tsx module is missing the following exports:
- AppHeader as a named export
The components/Calendar/CalendarHeader.tsx module is missing the following exports:
- CalendarHeader as a named export
The components/Calendar/CalendarGrid.tsx module is missing the following exports:
- CalendarGrid as a named export
The components/EntryForm/EntryForm.tsx module is missing the following exports:
- EntryForm as a named export
The components/EntryList/EntryCard.tsx module is missing the following exports:
- EntryCard as a named export
The components/DateDetail/DateDetailSheet.tsx module is missing the following exports:
- DateDetailSheet as a named export
The components/Summary/SummaryView.tsx module is missing the following exports:
- SummaryView as a named export
The components/Import/ImportDialog.tsx module is missing the following exports:
- ImportDialog as a named export
The components/Export/ExportDialog.tsx module is missing the following exports:
- ExportDialog as a named export
The components/Yearly/YearlyView.tsx module is missing the following exports:
- YearlyView as a named export
The hooks/useSupabaseEntries.ts module is missing the following exports:
- useSupabaseEntries as a named export
The lib/recurrence.ts module is missing the following exports:
- getMonthOccurrences as a named export
- getDateOccurrences as a named export
- calculatePeriodSummary as a named export
- generateOccurrences as a named export
If any of the files are missing, please create them and add the necessary exports.
I can see the actual exports now. Most are correct. The issue is that some UI components like Button, Input, Label, Card, Sheet, and hooks like useToast, toast are NOT being explicitly exported. Let me check these specific files:
Good! Button, Input, Label, and Card all have proper exports. Now let me check Sheet and the toast hook:
Let me get the rest of these files to see the full exports:
All the exports are there. The issue is clear now: The error message is complaining about modules in src/ but the deployment system is also looking for them in the root (without /src/). Let me check if there's a path alias issue or if we need to ensure the TypeScript configuration is correct:
I found the problem! The tsconfig.json has the wrong path alias. It says "@/*": ["./*"] but based on the vite.config, it should be "@/*": ["./src/*"]. This is causing the deployment validation to fail because imports like import { Button } from "@/components/ui/button" are looking in the root instead of in /src.
Fixed! The issue was the TypeScript path alias configuration. The tsconfig.json was pointing @/* to ./* (root directory) instead of ./src/* (src directory). This mismatch caused the deployment system to look for modules in the wrong location, even though the exports were correct. With this fix, all module imports should resolve properly during deployment.
I detected and automatically synced new changes from main in v0-export-bug-fix.
An error occurred during deployment. Please fix:
The block contains references to missing modules that will caused errors when deployed.
Please make sure the following files exist and have the correct exports:
The types/entry.ts module is missing the following exports:
- Entry as a named export
- frequencyToDbEnum as a named export
- dbEnumToFrequency as a named export
- Frequency as a named export
- frequencyLabels as a named export
- GeneratedOccurrence as a named export
The components/ui/button.tsx module is missing the following exports:
- Button as a named export
- buttonVariants as a named export
- ButtonProps as a named export
The components/ui/input.tsx module is missing the following exports:
- Input as a named export
The components/ui/label.tsx module is missing the following exports:
- Label as a named export
The components/ui/card.tsx module is missing the following exports:
- Card as a named export
- CardContent as a named export
- CardDescription as a named export
- CardHeader as a named export
- CardTitle as a named export
The hooks/use-toast.ts module is missing the following exports:
- useToast as a named export
- toast as a named export
The hooks/useAuth.ts module is missing the following exports:
- useAuth as a named export
The components/ui/sheet.tsx module is missing the following exports:
- Sheet as a named export
- SheetContent as a named export
- SheetHeader as a named export
- SheetTitle as a named export
The components/Layout/AppHeader.tsx module is missing the following exports:
- AppHeader as a named export
The components/Calendar/CalendarHeader.tsx module is missing the following exports:
- CalendarHeader as a named export
The components/Calendar/CalendarGrid.tsx module is missing the following exports:
- CalendarGrid as a named export
The components/EntryForm/EntryForm.tsx module is missing the following exports:
- EntryForm as a named export
The components/EntryList/EntryCard.tsx module is missing the following exports:
- EntryCard as a named export
The components/DateDetail/DateDetailSheet.tsx module is missing the following exports:
- DateDetailSheet as a named export
The components/Summary/SummaryView.tsx module is missing the following exports:
- SummaryView as a named export
The components/Import/ImportDialog.tsx module is missing the following exports:
- ImportDialog as a named export
The components/Export/ExportDialog.tsx module is missing the following exports:
- ExportDialog as a named export
The components/Yearly/YearlyView.tsx module is missing the following exports:
- YearlyView as a named export
The hooks/useSupabaseEntries.ts module is missing the following exports:
- useSupabaseEntries as a named export
The lib/recurrence.ts module is missing the following exports:
- getMonthOccurrences as a named export
- getDateOccurrences as a named export
- calculatePeriodSummary as a named export
- generateOccurrences as a named export
If any of the files are missing, please create them and add the necessary exports.
You can send messages while the preview loads