Typescript error
Hey all, I keep getting this error:
To ignore failing typecheck, use ~~~~~~~
Found 1 error in convex/providers/convex-client-provider.tsx:9
The file path is correct and Convex wont seem to recognize my schema until I resolve this error. Any idea what to do?
--typecheck=disable
.
convex/providers/convex-client-provider.tsx:9:25 - error TS2307: Cannot find module '@/components/auth/loading' or its corresponding type declarations.
9 import { Loading } from "@/components/auth/loading"; // Loading component
8 Replies
The
@
alias is likely the issue - do you use that alias in both your src
and convex
directories or solely in convex
?
You can confirm by trying a relative path instead of the aliasI have tried using the relative path as well and updated both the convex-client-provider.js & convex-client-provider.tsx file. When I attempted to import the <Loading /> component it wouldnt even acknowledge that the file exists.



I'm confused - the typecheck error should only be for convex code, not client side
Is
convex/providers/convex-client-provider.tsx
a file in your repo?
If you're keeping any client side code in your convex/
directory, you'll want to move it outAhhh that was it. I accidentally nested a folder under /convex.
Thank you!
No problem! Glad it was simple
Ill probably post here with more questions later on! Haha. Just starting on my dev journey 😄
Nice! Happy to help 👍