Issue with convex being picked up by `npx tsc` in expo project
The problem
Whenever i run
npx tsc to check for any typescript compile errors from the root of my repo, it picks up on some files in my projects from the convex/ and says there are errors. But convex/ has its own tsconfig (the default one from convex), and when running
npx tsc if i cd into the convex folder, i get none of those errors as stated above. So only running tsc in the root says errors are present in a few convex folder files.I'm using this tsconfig, since im in a expo project:
I've tried a few things:
- Removed the
"**/*.tsx", "**/*.ts" from the include, as i thought maybe those were overwriting the exclude i added, but that messed all my path imports up in my project.- Playing around with multiple different glob patterns for the excludes, but without luck
- Tried setting up a reference in the root tsconfig to the one in convex/ but that didn't work out due to
"noEmit": true in the convex tsconfig