Next.js Discord

Discord Forum

Collecting Page Data Error

Unanswered
Ghost ant posted this in #help-forum
Open in Discord
Ghost antOP
Good day I have an error when trying to build / Deploy
 Collecting page data  .ReferenceError: Cannot access 'eh' before initialization
    at Object.d (C:\SchoolSystems\hamem-int-school\.next\server\chunks\5328.js:1:103)
    at 3291 (C:\SchoolSystems\hamem-int-school\.next\server\chunks\5328.js:1:34658)
    at t (C:\SchoolSystems\hamem-int-school\.next\server\webpack-runtime.js:1:128)
    at 2208 (C:\SchoolSystems\hamem-int-school\.next\server\chunks\5328.js:1:6107)
    at t (C:\SchoolSystems\hamem-int-school\.next\server\webpack-runtime.js:1:128)
    at 60410 (C:\SchoolSystems\hamem-int-school\.next\server\app\api\trpc\[trpc]\route.js:1:1137)
    at t (C:\SchoolSystems\hamem-int-school\.next\server\webpack-runtime.js:1:128)
    at r (C:\SchoolSystems\hamem-int-school\.next\server\app\api\trpc\[trpc]\route.js:1:13817)
    at C:\SchoolSystems\hamem-int-school\.next\server\app\api\trpc\[trpc]\route.js:1:13855
    at t.X (C:\SchoolSystems\hamem-int-school\.next\server\webpack-runtime.js:1:1206)

> Build error occurred
Error: Failed to collect page data for /api/trpc/[trpc]
    at C:\SchoolSystems\hamem-int-school\node_modules\.pnpm\next@14.2.3_@babel+core@7.24.7_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\build\utils.js:1268:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}

How to fix it please ?
I have Checked all my api requests nothing weird

0 Replies