Vercel Nodejs backend deployment - This Serverless Function has crashed. #5856
Replies: 5 comments
-
Getting Same Error, if anyone have solution |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same error |
Beta Was this translation helpful? Give feedback.
0 replies
-
getting the same error too |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same error |
Beta Was this translation helpful? Give feedback.
0 replies
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I haven't been able to solve this Vercel 500 error. Appears I am using compatible versions of mongodb and mongoose
Example
No response
Steps to Reproduce
Cannot find module '../sdam/server_selection'
Require stack:
Did you forget to add it to "dependencies" in
package.json
?INIT_REPORT Init Duration: 202.85 ms Phase: invoke Status: error Error Type: Runtime.ExitError
Error: Runtime exited with error: exit status 1
Runtime.ExitError
package.json:
{
"name": "stay-fit-app-server-server",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node server.js",
"dev": "nodemon server.js"
},
"dependencies": {
"bcrypt": "^5.1.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-jwt": "^8.4.1",
"express-session": "^1.17.3",
"jsonwebtoken": "^9.0.1",
"mongodb": "^6.0.0",
"mongoose": "^8.1.3",
"morgan": "^1.10.0"
},
"devDependencies": {
"nodemon": "^3.0.1"
}
}
Beta Was this translation helpful? Give feedback.
All reactions