Typescript IntelliSense does not work with TRPC + React projects. Normal type works like importing or declaring a type in the same file.
export const AuthButton = () => {
const { data, isLoading } = trpc.auth.public.user.useQuery();
^^^^^ any
if (isLoading) {
return;
}
if (!data) {
return (
<Button size="sm" variant="outline" asChild>
<Link href={routes.signup}>Sign Up</Link>
</Button>
);
}
return <ProfileAvatar />;
};
I have switched back to VSCode because of this issue.
Device: M4 mac mini
OS: macOS 15.2 (24C101)
Cursor Version: 0.44.11 arm64