op
op2w ago

Convex deployment error: Uncaught Failed to analyze _deps/node/3KNO765E.js: File is not defined

Hello, How to debug this:
> convex dev --env-file .env.prod.local
✔ Provisioned a prod deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

...

✖ Error: Unable to start push to https://xxx.convex.cloud
✖ Error fetching POST https://xxx.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Uncaught Failed to analyze _deps/node/3KNO765E.js: File is not defined
⠋ Preparing Convex functions...
 ELIFECYCLE  Command failed with exit code 254.
> convex dev --env-file .env.prod.local
✔ Provisioned a prod deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

...

✖ Error: Unable to start push to https://xxx.convex.cloud
✖ Error fetching POST https://xxx.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Uncaught Failed to analyze _deps/node/3KNO765E.js: File is not defined
⠋ Preparing Convex functions...
 ELIFECYCLE  Command failed with exit code 254.
1 Reply
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?