Convex CommunityCCConvex Community
Powered by
veronikakochetoV
Convex Community•2y ago•
5 replies
veronikakocheto

convex function not pushing from VS code to convex project dashboard

Hey guys! I'm struggling for a full day trying to figure this out, my backend teammate had to cancel for our project so I'm in charge of getting convex to integrate now and all I've done is front end stuff before 😢 Im trying to push the convex function I've created in my VS code js file to my convex dashboard for the project but it is not showing up after a whole ton of troubleshooting. I am using this html script tag: <script src="https://unpkg.com/convex@1.10.0/dist/browser.bundle.js"></script>
<script>
const CONVEX_URL = "https://my-actual-url.convex.cloud";
const client = new convex.ConvexClient(CONVEX_URL);
client.onUpdate("messages:list", {}, (messages) =>
console.log(messages.map((msg) => msg.body)),
);
</script>

and this is the function in a js file under "functions" in my root directory: import { mutation } from "./_generated/server";
import { v } from "convex/values";

export const login = mutation({
args: { email: v.string(), password: v.string() },
handler: async ({ db }, { email, password }) => {
// Query for user information
const user = await db.table("users").filter(q => q.eq("email", email)).first();

// Placeholder for actual password verification
// In a real application, you should hash the password and compare hashes
if (user && user.password === password) {
return { status: "success", user: user };
} else {
return { status: "failed" };
}
},
});
I am using the command "npx convex deploy" in the VS Code terminal and it seems to be showing as successful but not showing up on my dashboard: ✔ Deployed Convex functions to https://yes-i-have-my-actual-link-here.convex.cloud

any help would be very much appreciated!!!!
Convex Community banner
Convex CommunityJoin
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
15,138Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
james

Hi @everyone with everything going on today I forgot to post on discord about our EU launch! We have a region in Dublin now! You can start using it immediately, even for folks on the free plan. https://news.convex.dev/we-finally-got-our-eu-visa/ Stay tuned for more regions but also stay tuned for more infra improvements where we improve latency for teams no matter where their servers are located. Just at the tip of the iceberg re all the optimizations we have lined up.

james · 3d ago

Wayne

Hi @everyone happy Monday. Components Authoring [Challenge](https://www.convex.dev/components/challenge) updates! Meet the second batch of community-approved components **Firecrawl Scrape **- Scrape any URL and get clean markdown, HTML, screenshots, or structured JSON - with durable caching and reactive queries. https://www.convex.dev/components/firecrawl-scrape Built by: Gitmaxd **Durable Agents **- A Convex component for building durable AI agents with an async tool loop. https://www.convex.dev/components/durable-agents Built by: Siegfried **Convex Debouncer** - A server-side debouncing component for debouncing expensive operations like LLM calls, metrics computation, or any heavy processing that should only run after a period of inactivity. https://www.convex.dev/components/debouncer Built by: Ilya **DatabaseChat **- A Convex component for adding natural language database queries to your app. https://www.convex.dev/components/database-chat Built by: Nick **Transloadit** - A Convex component for creating Transloadit Assemblies, handling resumable uploads with status, and persisting status/results in Convex. https://www.convex.dev/components/transloadit Built by: Kvz **Loops** - A Convex component for integrating with Loops.so email marketing platform. https://www.convex.dev/components/loops Built by: Bobby The [challenge](https://www.convex.dev/components/challenge) is now ongoing, so keep building, and we'll keep rewarding. Thanks, everyone!

Wayne · 3w ago

Liz C

Hi everyone! Have you ever wanted to get your hands on some convex swag? Well you're in luck! We just launched our Convex swag store. Check it out here ---> https://store.convex.dev/

Liz C · 3w ago

Similar Threads

convex dev command not pushing functions
AliAAli / support-community
10mo ago
Convex dashboard not updating
Quang KhánhQQuang Khánh / support-community
5mo ago
Convex dashboard not updating
Convex BotCConvex Bot / support-community
5mo ago
Pushing Generated PNG to Convex DB
TotallyDarkTTotallyDark / support-community
2y ago