Rodrigo-R
Rodrigo-R5mo ago

Error on deploy: Cannot read properties of undefined (reading 'addHttpRoutes')

Hi, for a couple of hours (?) i'm unable to deploy due to this error:
Error fetching POST https://xxxxx.convex.cloud/api/push_config 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze http.js: Uncaught TypeError: Cannot read properties of undefined (reading 'addHttpRoutes')
Error fetching POST https://xxxxx.convex.cloud/api/push_config 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze http.js: Uncaught TypeError: Cannot read properties of undefined (reading 'addHttpRoutes')
Could it be something on Convex side?
2 Replies
ballingt
ballingt5mo ago
what does your convex/http.ts look like?
Rodrigo-R
Rodrigo-ROP5mo ago
a true wizard! i'm disabling convex auth support (temporarily). so i have
import { httpRouter } from "convex/server";
const http = httpRouter();
// auth.addHttpRoutes(http);
export default http;
import { httpRouter } from "convex/server";
const http = httpRouter();
// auth.addHttpRoutes(http);
export default http;
Now the error has changed to InvalidAuthConfig: Hit an error while pushing: I have auth.config.ts and auth.ts commented out... How do i disable Auth to get rid of this error? Thanks for your help! never mind i just deleted auth.config.ts and it's now working again thank you very much!

Did you find this page helpful?