`createAsync` crashing my app
Hi everyone.
When I add this second
createAsync
my app crashes:
__vite_ssr_import_7__.getSocialNetworksAndContacts is not a function
Code:
4 Replies
My router:
Any idea?
Sorry for insist, any idea what I'm doing wrong
well it seems like you are not able to import your getSocial.... function, do you export it and import it properly?
I think I found the problem this morning, but not sure
So
client
from sanity is beining exported on ~/cms/index.ts
and imported on the query but after that (on the service), the client and the query are both imported from ~/cms
and on the route I import the service from the ~/cms
So I think I need to remove the exports from ~/cms/index.ts
and use it as independenti remember having some problems like that
try to export it independantly yeah