too_easyT
Convex Community14mo ago
8 replies
too_easy

[Resolved] - TypeError: Cannot destructure property 'signIn' of useAuthActions

Using @tanstack/start and when I go to create a signin component:

import { useAuthActions } from "@convex-dev/auth/react";

const Signup = () => {
 const { signIn } = useAuthActions();

 return <div>Hello</div>
}


Get the error:

Error in renderToPipeableStream: TypeError: Cannot destructure property 'signIn' of '__vite_ssr_import_1__.useAuthActions(...)' as it is undefined.


Also seems that my IDE can't pick up and autocomplete useAuthActions either?
Was this page helpful?