Skip to content

build error #218

@waTErMo0n

Description

@waTErMo0n

I keep getting similar errors when building with this repository. I'm not sure if the code I'm using is correct or if it's a configuration issue. Currently, I'm using the main branch...

root@ai-sandbox-e2b:/var/www/dashboard# bun run build
$ bun scripts:check-app-env
$ bun scripts/check-app-env.ts
✅ Environment variables validated successfully
$ next build --turbopack
   ▲ Next.js 16.0.10 (Turbopack)
   - Environments: .env.local
   - Experiments (use with caution):
     ✓ authInterrupts
     · serverActions
     ✓ turbopackFileSystemCacheForDev
     ✓ useCache

   Creating an optimized production build ...
 ✓ Compiled successfully in 10.2s
   Running TypeScript  .Failed to compile.

./src/app/dashboard/[teamIdOrSlug]/templates/[templateId]/builds/[buildId]/page.tsx:52:9
Type error: Type '{ status?: "success" | "building" | "failed"; template?: string; startedAt?: number; finishedAt?: number; statusMessage?: string; hasRetainedLogs?: boolean; }' is not assignable to type 'BuildDetailsDTO'.
  Property 'template' is optional in type '{ status?: "success" | "building" | "failed"; template?: string; startedAt?: number; finishedAt?: number; statusMessage?: string; hasRetainedLogs?: boolean; }' but required in type 'BuildDetailsDTO'.

  50 |     <div className="h-full min-h-0 flex-1 p-3 md:p-6 flex flex-col gap-6">
  51 |       <BuildHeader
> 52 |         buildDetails={buildDetails}
     |         ^
  53 |         buildId={buildId}
  54 |         templateId={templateId}
  55 |       />
Next.js build worker exited with code: 1 and signal: null
error: script "build" exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions