Use convex in backend and frontend
Hello, how can I use same project in frontend and backend I have problems with schema
✔ 17:30:26 Convex functions ready! (734.61ms)
14/10/2025 17:30:26 [CONVEX Q(instagram:getStats)] Could not find public function for 'instagram:getStats'. Did you forget to run
npx convex dev or npx convex deploy?9 Replies
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!
Sounds like you need to run npx convex dev
Yes but how can I do it if I have one into svelte (front) and one into python (back)?
Have you checked out the python quickstart? https://docs.convex.dev/quickstart/python
You're calling instagram:getStats and it isn't defined, that means that function hasn't been deployed. If you're working with a development deployment you run
npx convex dev to deploy your Convex functions for development.But I did npx convex dev into JS folder, and Python folder will not have the same schema structure even with npx convex dev on his side
That's why it's saying that error
That error is from Convex dev server, not your Python code
It's saying the function you're trying to call doesn't exist in the deployment
Your Convex functions will be written in Typescript in your convex directory
so python isn't actually involved in this part
But let's say I have npm run dev in my frontend, I deployed the schema in development (automatically because run dev), how can I access this schema with Python since the convex folder is different in the two repositories?
I'm not sure what changes may be necessary for python compatibility, but in general you can generate types to make Convex work between repositories: https://docs.convex.dev/production/multiple-repos
Multiple Repositories | Convex Developer Hub
Use Convex in multiple repositories
how can I access this schema with Python since the convex folder is different in the two repositories?You don't access the data directly. Instead, you write convex actions/queries/mutations in TypeScript that you can call from your python code. Think of convex as a combination of "Javascript Database + HTTP server" that other clients on the internet can interact with. So, your python backend would use convex in the same way the JavaScript frontend uses Convex, basically. You don't have raw data access (at least not in the way you're thinking about it)