opO
Convex Community5mo ago
1 reply
op

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.
Was this page helpful?