-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
500 Error with Next-intl Middleware on Vercel Deployment: EDGE_FUNCTION_INVOCATION_FAILED #603
Comments
Can you upgrade to the release candidate and see if the issue persists? The examples in this repo have been updated to Next.js 14 and can be deployed to Vercel flawlessly. |
Now during the build i'm getting this error |
You're using the stable version, not the release candidate. https://github.com/Zakisb/aimplifyy/blob/32173189db4e9b8c0ba107ea6db1b65fd2c62eb4/package.json#L22 |
Still the same problem |
The latest release candidate is |
I unfortunately don't have any background on that warning, but it shouldn't be related to the usage of JavaScript. I'll close this issue since there doesn't seem to be an issue with |
Description
Encountering a server-side error when deploying a Next.js 14 application with next-intl middleware to Vercel. The deployment fails with a 500 status code, specifically citing EDGE_FUNCTION_INVOCATION_FAILED as the reason. Additionally, a ReferenceError: __dirname is not defined occurs within the ua-parser-js module, as well as in the user-agent and middleware files of next-intl. This error is not present during local development and only manifests upon deployment to Vercel.
Note that previously i worked with next-intl and deployed without a problem. i don't know if it's something to do with the latest next 14 version or next-intl
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://github.com/Zakisb/aimplifyy
Reproduction description
Deploy to vercel
Expected behaviour
I expected the web app to be deployed.
The text was updated successfully, but these errors were encountered: