
> lcbp3-frontend@1.5.1 build
> next build

 ΓÜá Warning: Next.js inferred your workspace root, but it may not be correct.
 We detected multiple lockfiles and selected the directory of D:\nap-dms.lcbp3\pnpm-lock.yaml as the root directory.
 To silence this warning, set `turbopack.root` in your Next.js config, or consider removing one of the lockfiles if it's not needed.
   See https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack#root-directory for more information.
 Detected additional lockfiles: 
   * D:\nap-dms.lcbp3\frontend\pnpm-lock.yaml

   Γû▓ Next.js 16.0.7 (Turbopack)
   - Environments: .env.local

 ΓÜá The "middleware" file convention is deprecated. Please use "proxy" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy
   Creating an optimized production build ...
 Γ£ô Compiled successfully in 7.2s
   Running TypeScript ...
Failed to compile.

./app/(dashboard)/circulation/new/page.tsx:48:32
Type error: Object literal may only specify known properties, and 'required_error' does not exist in type '{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; }'.

  46 | // Form validation schema
  47 | const formSchema = z.object({
> 48 |   correspondenceId: z.number({ required_error: "Please select a document" }),
     |                                ^
  49 |   subject: z.string().min(1, "Subject is required"),
  50 |   assigneeIds: z.array(z.number()).min(1, "At least one assignee is required"),
  51 |   remarks: z.string().optional(),
Next.js build worker exited with code: 1 and signal: null
