Skip to content

Fix server routes module not found error#5

Closed
irkky wants to merge 1 commit into
mainfrom
cursor/fix-server-routes-module-not-found-error-bb2f
Closed

Fix server routes module not found error#5
irkky wants to merge 1 commit into
mainfrom
cursor/fix-server-routes-module-not-found-error-bb2f

Conversation

@irkky
Copy link
Copy Markdown
Owner

@irkky irkky commented Aug 1, 2025

Configure Vercel to correctly build and serve the server-side application to resolve module not found errors.

The previous Vercel setup attempted to run unbundled TypeScript files, leading to ERR_MODULE_NOT_FOUND for internal modules like routes. This PR introduces a vercel-build script to compile and bundle the server code into dist/index.js and updates vercel.json to use this bundled output as a serverless function, ensuring proper module resolution and deployment.


Open in Cursor Open in Web

Learn more about Cursor Agents

Co-authored-by: rikkyrich69 <rikkyrich69@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 1, 2025

Deployment failed with the following error:

The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.

Learn More: https://vercel.link/functions-and-builds

@irkky irkky closed this Aug 1, 2025
@irkky irkky deleted the cursor/fix-server-routes-module-not-found-error-bb2f branch August 1, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants