An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available
Downloading 96 deployment files...
Running "vercel build"
Vercel CLI 48.0.3
Running "install" command: `bun install`...
bun install v1.2.22 (6bafe260)
+ @tailwindcss/postcss@4.1.13
+ @types/node@22.18.6
+ @types/react@18.3.24
+ @types/react-dom@18.3.7
+ postcss@8.5.6
+ tailwindcss@4.1.13
+ tw-animate-css@1.3.3
+ typescript@5.9.2
+ @hookform/resolvers@3.10.0
+ @radix-ui/react-accordion@1.2.2
+ @radix-ui/react-alert-dialog@1.1.4
+ @radix-ui/react-aspect-ratio@1.1.1
+ @radix-ui/react-avatar@1.1.2
+ @radix-ui/react-checkbox@1.1.3
+ @radix-ui/react-collapsible@1.1.2
+ @radix-ui/react-context-menu@2.2.4
+ @radix-ui/react-dialog@1.1.4
+ @radix-ui/react-dropdown-menu@2.1.4
+ @radix-ui/react-hover-card@1.1.4
+ @radix-ui/react-label@2.1.1
+ @radix-ui/react-menubar@1.1.4
+ @radix-ui/react-navigation-menu@1.2.3
+ @radix-ui/react-popover@1.1.4
+ @radix-ui/react-progress@1.1.1
+ @radix-ui/react-radio-group@1.2.2
+ @radix-ui/react-scroll-area@1.2.2
+ @radix-ui/react-select@2.1.4
+ @radix-ui/react-separator@1.1.1
+ @radix-ui/react-slider@1.2.2
+ @radix-ui/react-slot@1.1.1
+ @radix-ui/react-switch@1.1.2
+ @radix-ui/react-tabs@1.1.2
+ @radix-ui/react-toast@1.2.4
+ @radix-ui/react-toggle@1.1.1
+ @radix-ui/react-toggle-group@1.1.1
+ @radix-ui/react-tooltip@1.1.6
+ @vercel/analytics@1.5.0
+ autoprefixer@10.4.21
+ class-variance-authority@0.7.1
+ clsx@2.1.1
+ cmdk@1.0.4
+ date-fns@4.1.0
+ embla-carousel-react@8.5.1
+ geist@1.5.1
+ input-otp@1.4.1
+ lucide-react@0.454.0
+ next@14.2.16
+ next-themes@0.4.6
+ pdf-lib@1.17.1
+ react@18.3.1
+ react-day-picker@9.8.0
+ react-dom@18.3.1
+ react-hook-form@7.63.0
+ react-resizable-panels@2.1.9
+ recharts@3.2.1
+ sonner@1.7.4
+ swr@2.3.6
+ tailwind-merge@2.6.0
+ tailwindcss-animate@1.0.7
+ vaul@0.9.9
+ zod@3.25.67
205 packages installed [3.92s]
Detected Next.js version: 14.2.16
Running "bun run build"
$ next build
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 14.2.16
Creating an optimized production build ...
⚠ Compiled with warnings
./app/dashboard/page.tsx
Attempted import error: 'swr' does not contain a default export (imported as 'useSWR').
Import trace for requested module:
./app/dashboard/page.tsx
✓ Compiled successfully
Skipping validation of types
Skipping linting
Collecting page data ...
Generating static pages (0/16) ...
Generating static pages (4/16)
Error occurred prerendering page "/api/report". Read more: https://nextjs.org/docs/messages/prerender-error
Error: WinAnsi cannot encode "✓" (0x2713)
at t1.encodeUnicodeCodePoint (/vercel/path1/.next/server/app/api/report/route.js:1:138203)
at t.encodeTextAsGlyphs (/vercel/path1/.next/server/app/api/report/route.js:1:187134)
at t.encodeText (/vercel/path1/.next/server/app/api/report/route.js:1:186003)
at t.encodeText (/vercel/path1/.next/server/app/api/report/route.js:1:312770)
at t.drawText (/vercel/path1/.next/server/app/api/report/route.js:1:368154)
at o (/vercel/path1/.next/server/app/api/report/route.js:1:381028)
at /vercel/path1/.next/server/app/api/report/route.js:1:381523
at Array.forEach (<anonymous>)
at i2 (/vercel/path1/.next/server/app/api/report/route.js:1:381511)
at async /vercel/path1/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:37010
Generating static pages (8/16)
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:150268) {
digest: '231252898'
}
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135346)
at listOnTimeout (node:internal/timers:588:17) {
digest: '3620596735'
}
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135346)
at listOnTimeout (node:internal/timers:588:17) {
digest: '3620596735'
}
Error occurred prerendering page "/dashboard". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:150268)
Generating static pages (12/16)
✓ Generating static pages (16/16)
> Export encountered errors on following paths:
/api/report/route: /api/report
/dashboard/page: /dashboard
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1
The Agent timed out. Type a new prompt to continue.
An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Retrieving list of deployment files...
Previous build caches not available
Downloading 96 deployment files...
Running "vercel build"
Vercel CLI 48.1.1
Running "install" command: `bun install`...
bun install v1.2.22 (6bafe260)
Resolving dependencies
Resolved, downloaded and extracted [866]
Saved lockfile
+ @tailwindcss/postcss@4.1.13
+ @types/node@22.18.6 (v24.5.2 available)
+ @types/react@18.3.24 (v19.1.13 available)
+ @types/react-dom@18.3.7 (v19.1.9 available)
+ postcss@8.5.6
+ tailwindcss@4.1.13
+ tw-animate-css@1.3.3 (v1.3.8 available)
+ typescript@5.9.2
+ @hookform/resolvers@3.10.0 (v5.2.2 available)
+ @radix-ui/react-accordion@1.2.2 (v1.2.12 available)
+ @radix-ui/react-alert-dialog@1.1.4 (v1.1.15 available)
+ @radix-ui/react-aspect-ratio@1.1.1 (v1.1.7 available)
+ @radix-ui/react-avatar@1.1.2 (v1.1.10 available)
+ @radix-ui/react-checkbox@1.1.3 (v1.3.3 available)
+ @radix-ui/react-collapsible@1.1.2 (v1.1.12 available)
+ @radix-ui/react-context-menu@2.2.4 (v2.2.16 available)
+ @radix-ui/react-dialog@1.1.4 (v1.1.15 available)
+ @radix-ui/react-dropdown-menu@2.1.4 (v2.1.16 available)
+ @radix-ui/react-hover-card@1.1.4 (v1.1.15 available)
+ @radix-ui/react-label@2.1.1 (v2.1.7 available)
+ @radix-ui/react-menubar@1.1.4 (v1.1.16 available)
+ @radix-ui/react-navigation-menu@1.2.3 (v1.2.14 available)
+ @radix-ui/react-popover@1.1.4 (v1.1.15 available)
+ @radix-ui/react-progress@1.1.1 (v1.1.7 available)
+ @radix-ui/react-radio-group@1.2.2 (v1.3.8 available)
+ @radix-ui/react-scroll-area@1.2.2 (v1.2.10 available)
+ @radix-ui/react-select@2.1.4 (v2.2.6 available)
+ @radix-ui/react-separator@1.1.1 (v1.1.7 available)
+ @radix-ui/react-slider@1.2.2 (v1.3.6 available)
+ @radix-ui/react-slot@1.1.1 (v1.2.3 available)
+ @radix-ui/react-switch@1.1.2 (v1.2.6 available)
+ @radix-ui/react-tabs@1.1.2 (v1.1.13 available)
+ @radix-ui/react-toast@1.2.4 (v1.2.15 available)
+ @radix-ui/react-toggle@1.1.1 (v1.1.10 available)
+ @radix-ui/react-toggle-group@1.1.1 (v1.1.11 available)
+ @radix-ui/react-tooltip@1.1.6 (v1.2.8 available)
+ @vercel/analytics@1.5.0
+ autoprefixer@10.4.21
+ class-variance-authority@0.7.1
+ clsx@2.1.1
+ cmdk@1.0.4 (v1.1.1 available)
+ date-fns@4.1.0
+ embla-carousel-react@8.5.1 (v8.6.0 available)
+ geist@1.5.1
+ input-otp@1.4.1 (v1.4.2 available)
+ lucide-react@0.454.0 (v0.544.0 available)
+ next@14.2.16 (v15.5.3 available)
+ next-themes@0.4.6
+ pdf-lib@1.17.1
+ react@18.3.1 (v19.1.1 available)
+ react-day-picker@9.8.0 (v9.11.0 available)
+ react-dom@18.3.1 (v19.1.1 available)
+ react-hook-form@7.63.0
+ react-resizable-panels@2.1.9 (v3.0.6 available)
+ recharts@3.2.1
+ sonner@1.7.4 (v2.0.7 available)
+ swr@2.3.6
+ tailwind-merge@2.6.0 (v3.3.1 available)
+ tailwindcss-animate@1.0.7
+ vaul@0.9.9 (v1.1.2 available)
+ zod@3.25.67 (v4.1.11 available)
200 packages installed [5.41s]
Blocked 1 postinstall. Run `bun pm untrusted` for details.
Detected Next.js version: 14.2.16
Running "bun run build"
$ next build
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 14.2.16
Creating an optimized production build ...
⚠ Compiled with warnings
./app/dashboard/page.tsx
Attempted import error: 'swr' does not contain a default export (imported as 'useSWR').
Import trace for requested module:
./app/dashboard/page.tsx
✓ Compiled successfully
Skipping validation of types
Skipping linting
Collecting page data ...
Generating static pages (0/16) ...
Generating static pages (4/16)
Error occurred prerendering page "/api/report". Read more: https://nextjs.org/docs/messages/prerender-error
Error: WinAnsi cannot encode "✓" (0x2713)
at t1.encodeUnicodeCodePoint (/vercel/path1/.next/server/app/api/report/route.js:1:138203)
at t.encodeTextAsGlyphs (/vercel/path1/.next/server/app/api/report/route.js:1:187134)
at t.encodeText (/vercel/path1/.next/server/app/api/report/route.js:1:186003)
at t.encodeText (/vercel/path1/.next/server/app/api/report/route.js:1:312770)
at t.drawText (/vercel/path1/.next/server/app/api/report/route.js:1:368154)
at o (/vercel/path1/.next/server/app/api/report/route.js:1:381028)
at /vercel/path1/.next/server/app/api/report/route.js:1:381523
at Array.forEach (<anonymous>)
at i2 (/vercel/path1/.next/server/app/api/report/route.js:1:381511)
at async /vercel/path1/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:37010
Generating static pages (8/16)
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:150268) {
digest: '231252898'
}
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135346)
at listOnTimeout (node:internal/timers:588:17) {
digest: '3620596735'
}
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135346)
at listOnTimeout (node:internal/timers:588:17) {
digest: '3620596735'
}
Error occurred prerendering page "/dashboard". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: (0 , n.default) is not a function
at d (/vercel/path1/.next/server/app/dashboard/page.js:1:309030)
at eh (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134657)
at e (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137542)
at ek (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138016)
at Array.toJSON (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135626)
at stringify (<anonymous>)
at eP (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142090)
at eE (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142569)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at Timeout._onTimeout (/vercel/path1/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:150268)
Generating static pages (12/16)
✓ Generating static pages (16/16)
> Export encountered errors on following paths:
/api/report/route: /api/report
/dashboard/page: /dashboard
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1
I removed SWR usage from the dashboard by making it a server-rendered page and added dynamic settings to prevent prerender errors. For the PDF route, I forced the route to be dynamic and documented how to replace non-ASCII characters (e.g., “✓”) with ASCII to stop the pdf-lib WinAnsi encoding crash. If you want, I can reintroduce a client-side dashboard card using SWR with a safe import pattern or switch to server fetch with no caching.
Reminder: I must always read a file before editing it. I’ll fetch the current contents of the affected files first, then apply targeted changes.
I removed SWR from the dashboard and now compute stats from the server-side in-memory db, marking the page as dynamic so it won’t be prerendered. For the PDF route, I forced dynamic Node.js runtime and replaced Unicode characters with ASCII equivalents to satisfy pdf-lib’s WinAnsi encoding, preventing the build-time crash.
i want to remove the dashboard section
and any links, connections, references to the dashboard
remove the dashboard completely and update it