cloudflare / next-on-pages

CLI to build and develop Next.js apps for Cloudflare Pages
https://www.npmjs.com/package/@cloudflare/next-on-pages
MIT License
1.29k stars 126 forks source link

[🐛 Bug]: ⚡️ ERROR: A duplicated identifier has been detected in the same function file, aborting. #905

Open rohitp-auxmitec opened 3 days ago

rohitp-auxmitec commented 3 days ago

next-on-pages environment related information

... 2024-11-12T16:44:30.442834Z ▲ [@sentry/nextjs - Client] Info: Successfully uploaded source maps to Sentry 2024-11-12T16:44:41.728653Z ▲ ✓ Compiled successfully 2024-11-12T16:44:41.730521Z ▲ Linting and checking validity of types ... 2024-11-12T16:45:00.815329Z ▲ Collecting page data ... 2024-11-12T16:45:03.947857Z ▲ ⚠ Using edge runtime on a page currently disables static generation for that page 2024-11-12T16:45:06.984034Z ▲ Generating static pages (0/2) ... 2024-11-12T16:45:08.089067Z ▲ ✓ Generating static pages (2/2) 2024-11-12T16:45:08.690019Z ▲ Finalizing page optimization ... 2024-11-12T16:45:08.690338Z ▲ Collecting build traces ... 2024-11-12T16:45:23.059247Z ▲
2024-11-12T16:45:23.0651Z ▲ Route (app) Size First Load JS 2024-11-12T16:45:23.065271Z ▲ ┌ ○ / 1.11 kB 236 kB 2024-11-12T16:45:23.065348Z ▲ ├ ƒ /_not-found 309 B 190 kB 2024-11-12T16:45:23.065488Z ▲ ├ ƒ /api/sentry-example-api 0 B 0 B 2024-11-12T16:45:23.065613Z ▲ ├ ƒ /auth/forgotPassword 360 B 563 kB 2024-11-12T16:45:23.065764Z ▲ ├ ƒ /auth/login 360 B 563 kB 2024-11-12T16:45:23.065884Z ▲ ├ ƒ /auth/newPassword 361 B 563 kB 2024-11-12T16:45:23.065987Z ▲ ├ ƒ /auth/register 360 B 563 kB 2024-11-12T16:45:23.066105Z ▲ ├ ƒ /auth/resetPassword 359 B 563 kB 2024-11-12T16:45:23.066227Z ▲ ├ ƒ /auth/setup-mfa 360 B 563 kB 2024-11-12T16:45:23.066344Z ▲ ├ ƒ /auth/validateMFA 359 B 563 kB 2024-11-12T16:45:23.066444Z ▲ ├ ƒ /blog/[slug] 7.06 kB 715 kB 2024-11-12T16:45:23.066543Z ▲ ├ ○ /participant 897 B 236 kB 2024-11-12T16:45:23.066657Z ▲ ├ ƒ /participant/dashboard 627 B 708 kB 2024-11-12T16:45:23.06677Z ▲ ├ ƒ /participant/my-intel 384 B 724 kB 2024-11-12T16:45:23.066869Z ▲ ├ ƒ /participant/my-intel-file 603 B 708 kB 2024-11-12T16:45:23.067115Z ▲ ├ ƒ /participant/my-intel-file/[id] 604 B 708 kB 2024-11-12T16:45:23.067254Z ▲ ├ ƒ /participant/my-org 3.62 kB 711 kB 2024-11-12T16:45:23.067376Z ▲ ├ ƒ /participant/my-profile 413 B 587 kB 2024-11-12T16:45:23.067494Z ▲ ├ ƒ /participant/my-profile/edit 905 B 588 kB 2024-11-12T16:45:23.067599Z ▲ ├ ƒ /participant/my-programs 782 B 708 kB 2024-11-12T16:45:23.067693Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id] 631 B 708 kB 2024-11-12T16:45:23.067816Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/certificate 15.1 kB 723 kB 2024-11-12T16:45:23.067932Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/dashboard 579 B 708 kB 2024-11-12T16:45:23.068062Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/meet-up-archive 3.47 kB 711 kB 2024-11-12T16:45:23.068206Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/meet-up-archive/recording 4.33 kB 274 kB 2024-11-12T16:45:23.068326Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/modules 795 B 708 kB 2024-11-12T16:45:23.068444Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/modules/sessions 383 B 724 kB 2024-11-12T16:45:23.068587Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/notebook 7.91 kB 715 kB 2024-11-12T16:45:23.068816Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/resources 642 B 708 kB 2024-11-12T16:45:23.068946Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/resources/[r_id] 2.73 kB 710 kB 2024-11-12T16:45:23.069059Z ▲ ├ ƒ /participant/my-programs/program/[p_id]/track/[t_id]/survey 382 B 724 kB 2024-11-12T16:45:23.069178Z ▲ ├ ƒ /participant/password 2.16 kB 543 kB 2024-11-12T16:45:23.069338Z ▲ ├ ƒ /participant/privacy-policy 5.57 kB 264 kB 2024-11-12T16:45:23.069448Z ▲ ├ ƒ /participant/resource 640 B 708 kB 2024-11-12T16:45:23.069559Z ▲ ├ ƒ /participant/resource/[r_id]/view 2.73 kB 710 kB 2024-11-12T16:45:23.069667Z ▲ ├ ƒ /participant/terms&condition 8.06 kB 278 kB 2024-11-12T16:45:23.069774Z ▲ └ ƒ /sentry-example-page 2.06 kB 191 kB 2024-11-12T16:45:23.069876Z ▲ + First Load JS shared by all 189 kB 2024-11-12T16:45:23.06998Z ▲ ├ chunks/52774a7f-f63681a653569ea3.js 36.3 kB 2024-11-12T16:45:23.070093Z ▲ ├ chunks/9309-c73752e2e6194743.js 96.4 kB 2024-11-12T16:45:23.070215Z ▲ ├ chunks/fd9d1056-e59b83574937dfb6.js 53.8 kB 2024-11-12T16:45:23.07032Z ▲ └ other shared chunks (total) 2.84 kB 2024-11-12T16:45:23.070425Z ▲
2024-11-12T16:45:23.070521Z ▲ Route (pages) Size First Load JS 2024-11-12T16:45:23.070615Z ▲ ─ ƒ /api/healthcheck 0 B 162 kB 2024-11-12T16:45:23.070719Z ▲ + First Load JS shared by all 162 kB 2024-11-12T16:45:23.070832Z ▲ ├ chunks/framework-035dc2251e8a9270.js 45.3 kB 2024-11-12T16:45:23.070937Z ▲ ├ chunks/main-697982466485e3b9.js 37.1 kB 2024-11-12T16:45:23.07103Z ▲ ├ chunks/pages/_app-854f54b9e90774bf.js 77.2 kB 2024-11-12T16:45:23.071134Z ▲ └ other shared chunks (total) 2.14 kB 2024-11-12T16:45:23.07126Z ▲ ○ (Static) prerendered as static content 2024-11-12T16:45:23.071366Z ▲ ƒ (Dynamic) server-rendered on demand 2024-11-12T16:45:23.071465Z ▲
2024-11-12T16:45:23.718255Z ▲ Traced Next.js server files in: 455.789ms 2024-11-12T16:45:24.770904Z ▲ Created all serverless functions in: 1.051s 2024-11-12T16:45:36.713084Z ▲ Collected static files (public/, static/, .next/static): 27.893ms 2024-11-12T16:45:38.20792Z ▲ Build Completed in .vercel/output [3m] 2024-11-12T16:45:38.300712Z ⚡️ Completed npx vercel build. 2024-11-12T16:45:38.935554Z 2024-11-12T16:45:38.935921Z ⚡️ ERROR: A duplicated identifier has been detected in the same function file, aborting. 2024-11-12T16:45:38.936036Z 2024-11-12T16:45:38.936535Z ⚡️ Please report this at https://github.com/cloudflare/next-on-pages/issues. 2024-11-12T16:45:38.978533Z Failed: Error while executing user command. Exited with error code: 1 2024-11-12T16:45:38.98971Z Failed: build command exited with code: 1 2024-11-12T16:45:40.469397Z Failed: error occurred while running build command

Description

Added sentry and even after merging changes to branch the build get's success and deployment fails

Reproduction

No response

Pages Deployment Method

None

Pages Deployment ID

c41dbb2182aa7d7006dc35baa16c8098

Additional Information

No response

Would you like to help?

jantiegges commented 1 day ago

related to #678