CruzC
Convex Community17mo ago
3 replies
Cruz

hey!

hey!
need help w/ monorepo.
my convex backend is located in the packages folder and inside convex I use alias to import and within the convex project everything works just fine

but now I lost type safety from
api
object within my react app which is in apps folder, you can see from the screenshot that client is any but inventory is typed, it's because for the client I imported query and mutation using alias but for inventory I used relative import
Screenshot_2024-09-15_at_5.15.00_PM.png
Screenshot_2024-09-15_at_5.12.01_PM.png
Was this page helpful?