-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Please verify that the package.json has a valid "main" entry #34844
Comments
Could you please provide a reproduction |
That's the problem @balazsorban44, it works fine on my local env. Even when I run it in PROD mode. But when I push that to vercel, only then I see this issue. |
That's fine, if you can share a reproduction, I can deploy it myself. I'll need to verify the error myself so we can look more into this. Are you maybe using |
I have already checked for that but with no luck. Here is a minimal version https://github.com/abhinavkumar940/nextjs-issue-reproduction But weirdly the minimal version works on vercel, the original version doesn't. Although they both share the same package.json file. |
Okay, was able to solve it but I have no idea what or how. I had this
in my serverless function file I removed it and then it started working fine. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
Expected Behavior
The serverless function should execute successfully
To Reproduce
Call an API route
The text was updated successfully, but these errors were encountered: