Open andrepcg opened 1 month ago
Are you able to share a reproduction for this?
@james-elicx Unfortunately no. My gut feeling is that it is related to using both @sentry/nextjs
and @sentry/react
packages but I haven't tried it yet, will do it later
@james-elicx Nope, that didnt do anything. Tried to remove a bunch of other packages without success.
What it's clear is that version 1.13.4 introduced the issue. Clear as water
same issue, @cloudflare/next-on-pages v1.13.5 works for me two days ago, but failed today. Revert my lockfile works fine.
My guess is that some dependency upgrade is not compatible with this PR: https://github.com/cloudflare/next-on-pages/pull/886
Also seeing this issue after installing @sentry/nextjs
Reverting @sentry/nextjs
to 8.35.0 fixed that issue for me
I also have the same problem with sentry and nextjs. with next-on-pages 1.13.2
I don't have this problem
next-on-pages environment related information
System: Platform: linux Arch: x64 Version: #1 SMP Debian 5.10.191-1 (2023-08-16) CPU: (3) x64 Common KVM processor Memory: 5 GB Shell: /usr/bin/zsh Package Manager Used: npm (10.2.4)
Relevant Packages: @cloudflare/next-on-pages: 1.13.4 vercel: N/A next: 13.5.6
Description
After v1.13.4 I started to get
ERROR: A duplicated identifier has been detected in the same function file, aborting.
Using v1.13.5 still results in the same error.next-on-pages@1.13.3 works fine next-on-pages@1.13.4 doesn't work next-on-pages@1.13.5 doesn't work
npx vercel build
worksReproduction
No response
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
27b1a3f7-1fc6-4ba9-8cf2-f291a8509cdf
Additional Information
Dependencies in the project
Would you like to help?