Calen
Calen
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
yeah convex uses react 18? the expo snack requires react 16.x.x
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
mhm i will try to figure it out, thanks a lot and sorry for the confusion
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
ah i see what you mean now
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
When i comment out line 28:
// const initProject = useMutation(api.actions.ai.codegen.initProjectStream);
// const initProject = useMutation(api.actions.ai.codegen.initProjectStream);
it works just fine, if i uncomment it i get this error
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
So this is the whole file:
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
Im confused. If my client is client site rendered I cannnot call:
const initProject = useMutation(api.actions.ai.codegen.initProjectStream);
const initProject = useMutation(api.actions.ai.codegen.initProjectStream);
?
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
This is the stacktrace
29 replies
CCConvex Community
Created by Calen on 1/17/2025 in #support-community
Error: Convex functions should not be imported in the browser.
I don't think theres any more relevant stuff in the convex dir. I am calling it in a component of https://github.com/expo/snack (website/src/client)
29 replies