-
Notifications
You must be signed in to change notification settings - Fork 137
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: Importing "@vercel/next": require() of ES Module #689
Comments
Hi, Can you try to add this thing to package.json? {
"name": "@package/name",
"resolutions": { "string-width": "4.2.3" }
...
} |
Add |
I think this is a bug in Bun. Can you open an issue in Bun's github repo? |
There is already a bug report in bun: oven-sh/bun#7539 |
The issue has been fixed in bun v1.1.4, looks like this can be closed. |
I'm also experiencing this error using yarn, adding "resolutions": { "string-width": "4.2.3" } hasn't resolved the issue for me. |
Upgrading the vercel dev dependency to 34 solved the issue for me. |
I'm still having issues using Bun 1.1.4 trying to build an Angular 17 application with Karma for testing. The first issue was with
|
Just noticed this from the log, I believed cloudflare need to bump their bun version in
Also followed https://developers.cloudflare.com/pages/configuration/language-support-and-tools/#v2-build-system ,fixed it by manually set up |
If you're using npm, adding this to my package.json fixed it for me: "overrides": { |
I have the same issue, in local environment. I’m using yarn. |
this worked for me, and for those who don't know where to set the |
Cloudflare Pages will install the right bun version during the build. |
next-on-pages environment related information
Description
success on local development but errored on cloudflare pages deployment.
Local Logs
Remote Logs
Reproduction
https://github.com/willin/nextjs-stripe-cloudflare
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
1a220fe3-8824-43cb-8da1-235a74b16e01
Additional Information
Just a new project with a
stripe
packge.Would you like to help?
The text was updated successfully, but these errors were encountered: