Next.js Discord

Discord Forum

Collecting page data ERROR

Unanswered
MateoB posted this in #help-forum
Open in Discord
Hello guys, please can anyone help me, I cannot make my platform work two days ago.

I created a merge of a feature with 30k lines, and from that moment I cannot build the project anymore. It gives me the error of collect page data on pages that are client side (I'm not using static paths or server side props). If I delete the page, then the error occurs on another page, and so.

I´ve the exact commit where this happens (it has like 100 files lol, super bad practice) and still can't find the error.

I tried the webpack circular dependency plugin, but it gives me a bunch of files that aren't related with the commit. Also deleted the new packages that comes with the commit, but nothing.

IMPORTANT: I mention the packages thing, because before this error, there's another one that comes with the merge: I cannot build because JS heaps out of memory. I need to disable the eslint and typescript validation types to build the project, and also allocate 8gb to the max old size. This did not happen before.

Error: Failed to collect page data for /app/chat
    at /home/runner/work/my-project/my-project/node_modules/next/dist/build/utils.js:1155:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
  type: 'Error'

1 Reply

fixed, it was a mui button in experimental mode xd