fix: move mongoose from devDependencies to dependencies in root package.json (#28)#53
fix: move mongoose from devDependencies to dependencies in root package.json (#28)#53adhacks541 wants to merge 2 commits into
Conversation
Moves mongoose from root devDependencies to dependencies to ensure robust production server deployments and prevent crash on startup due to missing module.
|
@adhacks541 is attempting to deploy a commit to the anglenobida003-8112's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Moves mongoose from devDependencies to dependencies in the root package.json, since it is required at runtime.
Changes:
- Added a new
dependenciessection containingmongoose. - Removed
mongoosefromdevDependencies.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hi @Ashmita1206 , I’ve resolved the merge conflict and updated the PR for Issue #28. The fix moves This contribution is part of my GSSoC'26 participation. Could you please review it when convenient? I'd be happy to address any feedback. Thanks! |
Description
This pull request addresses issue #28 where
mongoosewas listed underdevDependenciesin the rootpackage.jsonfile.Problem
In the root
package.json,mongoosewas listed underdevDependencies. When deploying to production using standard production-pruned installs (such asnpm install --production),devDependenciesare excluded. Sincemongooseis a core runtime dependency, this exclusion causes aCannot find module 'mongoose'runtime crash upon application startup.Solution
mongoosefromdevDependenciestodependenciesin the rootpackage.jsonfile.npm installto updatepackage-lock.jsonand ensure thatmongooseand its sub-dependencies are correctly unflagged from development-only scope.server/package.json.Closes #28