Cannot use usemutation in my nextjs/t3 project

I have this code const mutation = api.auth.addaccount.useMutation(); const handleLogin = async (email: string, password: string) => { await mutation({ email: email, password: password }); }; usemutation is underlined with wavy red and has this error when I hover over it "Property 'useMutation' does not exist on type 'DecorateProcedure<MutationProcedure<{ input: { email: string; password: string; }; output: string; }>>'.ts(2339) "
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?