Docker build fails in version 1.16.0
CLI output:
[1/3] STEP 11/12: RUN npm run build
> [email protected] build
> next build
▲ Next.js 14.2.28
- Environments: .env
Creating an optimized production build ...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
✓ Compiled successfully
Linting and checking validity of types ...
Failed to compile.
./src/app/groups/[groupId]/expenses/expense-form.tsx:177:5
Type error: Type '{ title: string; expenseDate: Date; amount: number; category: number; paidBy: string; paidFor: { participant: string; shares: number; }[]; splitMode: $Enums.SplitMode; saveDefaultSplittingOptions: false; isReimbursement: boolean; documents: { ...; }[]; notes: string; recurrenceRule: $Enums.RecurrenceRule | null; }' is not assignable to type 'AsyncDefaultValues<{ category: number; expenseDate: Date; title: string; amount: number; paidBy: string; paidFor: { participant: string; shares: number; }[]; splitMode: SplitMode; saveDefaultSplittingOptions: boolean; isReimbursement: boolean; documents: { ...; }[]; recurrenceRule: RecurrenceRule; notes?: string | u...'.
Types of property 'recurrenceRule' are incompatible.
Type 'RecurrenceRule | null' is not assignable to type 'RecurrenceRule | undefined'.
Type 'null' is not assignable to type 'RecurrenceRule | undefined'.
175 | const form = useForm<ExpenseFormValues>({
176 | resolver: zodResolver(expenseFormSchema),
> 177 | defaultValues: expense
| ^
178 | ? {
179 | title: expense.title,
180 | expenseDate: expense.expenseDate ?? new Date(),
Next.js build worker exited with code: 1 and signal: null
Error: building at STEP "RUN npm run build": while running runtime: exit status 1
Likely already fixed with https://github.com/spliit-app/spliit/commit/e63f3aa68fdfd7e0906755f9f6da0fc7b1638c3b but releasing a new tagged version would be nice
Likely already fixed with e63f3aa but releasing a new tagged version would be nice
Would be great to have a new version release with this fixed😭 Also related: #332 would make selfhosting spliit a lot easier!
Hey there. Same issue when updated my Vercel instance and it tried to deploy. Please @scastiel , can you push a quick release with the fix?
Thanks.
I created a patch release (1.16.1)
Disclaimer: this doesn't include any of the latest changes, it only fixes the build error.