"Did you forget to run `npx convex dev` " ? No I did not!
Hey guys,
Very unsure why this is happening. Getting the error could not find public function. I run convex dev, it runs alongisde my front end app in dev constantly, for some reason, its just not "deploying"?
Here is my output from running convex dev:
$ convex dev
✔ Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local
Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at (My convex link)
Any ideas what could be casuing this?
Discord
Join the Convex Community Discord Server!
Join the Convex Discord! Explore Convex, the open-source reactive database for app developers. | 11054 members
3 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!
A little confused over here...
In your title for this post, you claim that you didn't forget to run
npx convex dev
. Yet in the terminal output (?) that you pasted into the initial post, you're running convex dev
instead of npx convex dev
To my knowledge the convex
shell command should only be used through npx
. It's not a standalone tool.It can run either way, not using npx generally means it was installed globally, which also means you may not be running the version you think you are. As Clever mentioned,
npx convex dev
is recommended so you're using the package version of the repo you're running the command from.