Cruz
Cruz6mo ago

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
No description
No description
4 Replies
Hmza
Hmza6mo ago
https://docs.convex.dev/production/project-configuration are you using convex.json to point to convex folder?
Cruz
CruzOP6mo ago
yes, as I said, the problem is not within the convex app, there everything is working just fine w/ alias imports but the problem is when I'm importing api object from convex app into my react app and there the object loses types, within the convex app I see that api has all the necessary types
Cruz
CruzOP6mo ago
No description

Did you find this page helpful?