Degi
Degi4mo ago

TS type error: Property 'messages' does not exist on type '{}'.ts(2339) (internal.messages)

I am roughly following https://stack.convex.dev/full-stack-chatgpt-app this tutorial. And got this error on my action. I have "messages.ts" file and "send" mutation. Looks like "internal" inside "_generated/api.d.ts" doesn't have any property. Any idea what could be wrong? "convex": "^1.17.3" and I am using Next.js. Thank you in advance 🙏
Building a Full-Stack ChatGPT app
Let's build a full-stack chat app to talk to ChatGPT on its new API!
No description
2 Replies
ballingt
ballingt4mo ago
@Degi are there any internal mutations, queries, or actions in the messages file? If not, this is correct. Internal mutations look like internalMutation
Degi
DegiOP4mo ago
ah there was only mutations not internal ones. Changing to internalMutation fixed it. Thank you.

Did you find this page helpful?