-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: ERROR: A duplicated identifier has been detected in the same function file, aborting. #891
Comments
Are you able to share a reproduction for this? |
@james-elicx Unfortunately no. My gut feeling is that it is related to using both |
@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: #886 |
Also seeing this issue after installing |
Reverting |
I also have the same problem with sentry and nextjs. with next-on-pages |
I am seeing this on next-on-pages 1.13.6. The duplicated identifier happens to be "26195" and seems to be a small wrapper around node:buffer. E.g. the files in .next almost all have this: By the time it gets to E.g. Line 10:
Line 142:
Vercel version is "39.1.1". Worth nothing that same version worked fine with next-on-pages 1.13.5 (but I also changed other dependencies, so maybe a fluke). Can confirm that reverting sentry/nextjs to 8.35.0 from 8.39.0 solves this, and now the reference on line 10 is gone - only the line 142 reference is left. |
the latest versions of the sentry next.js plugin seem to have a bug that breaks next-on-pages: cloudflare/next-on-pages#891 pin to fix
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?
The text was updated successfully, but these errors were encountered: