T
TanStack10mo ago
flat-fuchsia

Using Convex Auth - 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>
}
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? Perhaps I need to do more with the vite setup than in the getting started guide, but can't figure it out
1 Reply
passive-yellow
passive-yellow10mo ago
We chatted about this on the Convex Discord server, this isn't supportd yet but support for Convex Auth is coming!

Did you find this page helpful?