Antoine
Antoine
CCConvex Community
Created by Antoine on 10/15/2024 in #support-community
Convex auth
Hey guys, I wanted to switch to convex auth using OTP, and I have a type error in here: Object literal may only specify known properties, and 'id' does not exist in type 'EmailUserConfig<GenericDataModel> & Pick<EmailConfig<GenericDataModel>, "sendVerificationRequest">'
4 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
Ok I just tried and it is not working for any of the mutations. Even with the old code I had. What issue could it be ? Could it be on your side ? Or maybe because I use an external auth provider and didn't configure it well
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
ok I will try that
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
the front end component calling the mutation create logs but when it should call the convex function it seem to just stop: no log from convex (convex dashboard or website) and no log from my app either
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
my package.json if it helps
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
my version: "@convex-dev/react-query": "^0.0.0-alpha.5",
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
ok so maybe I don't have the right version and it explain why the new way is not working for me ?
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
the most important files too look are the 3) & 4), as it is the real use case of my app. And as you see I think I did a code pretty close to the documentation
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
that is also confusing me. To be honest, the 2) is a file created by an AI that knew my repository to create false data on convex from a mocked_data.ts and the way it work is weird. So I'm lost too, I don't understand why the code I have that doesn't look like the documentation is working when the code I have that look exactly like the documentation does not work
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
4) the modal helper calling the client mutation (not working)
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
3) the function inside mutation.ts that I try to call inside the admin dashboard: export const createClient = mutation({ args: { name: v.string() }, handler: async (ctx, { name }) => { console.log('Creating client with args:', name) try { const clientId = await ctx.db.insert('clients', { name: name, }) console.log('Client created with ID:', clientId) return clientId } catch (error) { console.error('Error in createClient mutation:', error) throw new Error(Failed to create client: ${error}) } }, })
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
21 replies
CCConvex Community
Created by Antoine on 10/14/2024 in #support-community
Struggling using convex mutations
Hey, thanks for for trying to help me. this is the files: 1) the api file from /convex used on the dev dashboard to create false data 2) the component using it (and it is working)
21 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
hey guys, could it be because I don't use the Nextjs app router for exposing an API ?
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
if you want I even made it simpler by directly creating a false client when clicking on the "AddItemButton" inside my sidebar. and it is still not working
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
no it is from the console.log just before the createClient function, as I showed
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
for the mutation, now that I added it directly on the component I have that: console.log('formData', formData) createClient({ name: formData.Chateau as string }) and it is sending me a good log: formData {Chateau: 'eee'} but after that there is nothing
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
yes, but no log inside
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
Ok I tried some things and I can tell you more about the issue. The read functions are not working too when using the hook, but work when I use it directly on my components. And now I also tried using mutations on my component directly and it doesn't work either. So: - read only: works on components directly but not when using the hook I created - mutations: does not work either way
28 replies
CCConvex Community
Created by Antoine on 10/8/2024 in #general
hey guys ! I wanted to switch from
also, my convex folder is on my repo but outside the /src directory, could it be the root of the issue ?
28 replies