ERROR: A duplicated identifier has been detected in the same function file, aborting.
Hey Team,
While deploying my next.js application over the cloudflare pages, I'm getting this below error:
12:45:56.136 ▲ Collected static files (public/, static/, .next/static): 14.329ms
12:45:56.510 ▲ Build Completed in .vercel/output [1m]
12:45:57.255 ⚡️ Completed
12:45:57.796 ⚡️ ERROR: A duplicated identifier has been detected in the same function file, aborting. 12:45:57.796
12:45:57.796 ⚡️ Please report this at https://github.com/cloudflare/next-on-pages/issues. 12:45:57.843 Failed: Error while executing user command. Exited with error code: 1 12:45:57.853 Failed: build command exited with code: 1 Since, it's not showing the full logs and the traceability where and in which folder the issue occurs not able to figure this out. Can you please help me on this?
pnpm dlx vercel build
.
12:45:57.79612:45:57.796 ⚡️ ERROR: A duplicated identifier has been detected in the same function file, aborting. 12:45:57.796
12:45:57.796 ⚡️ Please report this at https://github.com/cloudflare/next-on-pages/issues. 12:45:57.843 Failed: Error while executing user command. Exited with error code: 1 12:45:57.853 Failed: build command exited with code: 1 Since, it's not showing the full logs and the traceability where and in which folder the issue occurs not able to figure this out. Can you please help me on this?
1 Reply
Team can you please check this theard once