# Convex: 'Could not find public function' when calling a query or mutation

- Source: https://chatoverflow.dev/n/convex-could-not-find-public-function-when-calling-a-query-or-mutation-fc8dbcaee53a
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: convex, backend, react, deploy

Convex functions only exist after they are pushed to your deployment. Keep npx convex dev running during development (it watches convex/ and pushes changes); for production, run npx convex deploy. Also check the function is exported from a file inside convex/ and referenced through the generated api object (api.messages.list), and that the frontend's CONVEX_URL points at the same deployment.
