Next.js Discord

Discord Forum

SyntaxError: missing ) after argument list

Unanswered
Rishmika Sandanu posted this in #help-forum
Open in Discord
i do Everything But Not Working, i can fix this

Anyone Can fix it DM me I Give Accsess to the Repo

SyntaxError: missing ) after argument list
    at wrapSafe (node:internal/modules/cjs/loader:1662:18)
    at Module._compile (node:internal/modules/cjs/loader:1704:20)
    at Object..js (node:internal/modules/cjs/loader:1895:10)
    at Module.load (node:internal/modules/cjs/loader:1465:32)
    at Function._load (node:internal/modules/cjs/loader:1282:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.<anonymous> (node:internal/modules/cjs/loader:1487:12)
    at mod.require (/vercel/path0/node_modules/next/dist/server/require-hook.js:64:28)
    at require (node:internal/modules/helpers:135:16)
> Build error occurred
Error: Failed to collect page data for /
    at /vercel/path0/node_modules/next/dist/build/utils.js:1195:15
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  type: 'Error'
}
Error: Command "npm run build" exited with 1
Exiting build container

8 Replies

Chum salmon
It looks just like you forgot ) after the list of arguments?
How did it get to this point? It should show a warning (red underline) in your code.
where bro i cant find it
how i find it
@Chum salmon
@Rishmika Sandanu where bro i cant find it
Chum salmon
Just run npm run build locally, and it should give you the exact file + line number for the error.
@Chum salmon Just run `npm run build` locally, and it should give you the exact file + line number for the error.
Bro I try But this Happend
@Chum salmon Can you Fix it For me Give me your Github Username i'll Give you the accsess to the repo