Loosing Type safety for 1 table only in convex with Turporepo (NextJS)
Hey there, I've recently migrated to turbo repo and trying to figure things using https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo. But for one of the route (or we can say table). I'm having some issues with
work_item
.
On hover Expected is to get something like this on hover:
instead I'm getting:
8 Replies
Here's my repo - https://github.com/vignesh-gupta/projectify
GitHub
GitHub - vignesh-gupta/projectify: Struggling to stay organized and...
Struggling to stay organized and meet deadlines? Projectify is the ultimate free project management tool for you! Boost your productivity and achieve your goals effortlessly with our intuitive fea...
Hey @ian, would really appreciate your some help here!
This issue is causing loose of type. So on filter the individual items comes out to be
any
current workaround is this -
but I really would like to understand this issue because this is with only 1 route.
Replacing
import { mutation, query } from "@/convex/_generated/server";
with
import { mutation, query } from "./_generated/server";
seems to work. Not sure why 🙂
Also, you're importing from "@/convex/_generated//server"
several places (notice the two slashes before server
. No clue if this can pose an issue, but it seems strangeI think you're missing some more config based on the example you linked. E.g.
in the root
package.json
file.
Also I think you should not name your child packages/workspaces as @repo/...
, I think that's just the placeholder example from the turborepo example: https://turbo.build/repo/docs/crafting-your-repository/structuring-a-repository#name
im no expert in this, but maybe you can troubleshoot based on these points 🙂Turbo
Structuring a repository | Turborepo
Start by creating a repository using the conventions of the ecosystem.
Thanks man! Really appreciate your help. and thanks for giving other insight as well. I've just started with tubro repo so it's good to know this things.
And yeah, it worked some how
Your solution just helped me with mine
Thank you. This really helped me