Vercel EDGE_FUNCTION_INVOCATION_FAILED for React 18 and Server Components experimental features #152
Replies: 7 comments 10 replies
-
Could you share the repository so we can investigate? |
Beta Was this translation helpful? Give feedback.
-
A faced a similar issue. In my case I had a |
Beta Was this translation helpful? Give feedback.
-
I am also having this error. My config has these features:
|
Beta Was this translation helpful? Give feedback.
-
Any updates on this, we just added a very simple piece of middleware to check a bearer token and it's failing once it is deployed. Have there been any recent updates on this? |
Beta Was this translation helpful? Give feedback.
-
I believe there is a bug with the edge function WebPack bundling. I have created a sample repo: https://github.com/Shakahs/nextjs-edge-bug-demo Taking the standard Next.js TS template and adding the following middleware causes the edge function to crash when running on Vercel.
The Vercel log contains the following: The EvalError is related to WebPack usage. |
Beta Was this translation helpful? Give feedback.
-
Seems to be that there is some sort of error in the function, in our case it was a function throwing early. I was unable to see the logs at first as the Vercel |
Beta Was this translation helpful? Give feedback.
-
faced this error today. Couldn't fix it yet. |
Beta Was this translation helpful? Give feedback.
-
Using a clean next project with react 18 and concurrentFeatures and serverComponents enabled I'm having 500 EDGE_FUNCTION_INVOCATION_FAILED on vercel. Locally everything looks right.
Same error on 12.0.2.
Is vercel having errors using experimental react-18 features?
Beta Was this translation helpful? Give feedback.
All reactions