#defineSchema and defineTable not found when building for prod

1 messages · Page 1 of 1 (latest)

fossil viperBOT
#

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.
  • Ask in the #1228095053885476985 channel to get a response from @sullen haven.
  • Avoid tagging staff unless specifically instructed.

Thank you!

light cosmos
#

I created a custom type definition file types/convex.d.ts to manually declare missing module exports for convex/server, including query, defineSchema, and defineTable. (an error i was getting) Initially, I hadn't included defineSchema and defineTable DOH!, but I added them to resolve the build error for defining schemas

mortal solstice
#

Those shouldn't be missing module exports. When building, is convex installed, or why is the custom definition file necessary? What is it being build for?