dgtlmonk
dgtlmonk•4mo ago

usePreloadQuery - undefined is not an Object (evaluating 'preloadQuery._argsJSON')

I'm trying to server-render using Remix via preloadQuery. From the log, I can see NEXT_PUBLIC_CONVEX_URL and CONVEX_URL have values, but i'm getting this error. I'm deploying to fly.io
No description
6 Replies
Convex Bot
Convex Bot•4mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
Clever Tagline•4mo ago
Could you share the part of your code where you're trying to use preloadQuery? I'm seeing reference in the log to preloadedQuery (different spelling; not sure if that is the problem, or if it's something else)
dgtlmonk
dgtlmonkOP•4mo ago
@Clever Tagline
No description
dgtlmonk
dgtlmonkOP•4mo ago
but this works locally 🤔 maybe i'll try to deploy to different sever and see if there's a difference hmm, seems like this is Bun package manager issue Confirmed it's Bun package manager issue switched to npm and it works ...
Clever Tagline
Clever Tagline•4mo ago
Haven't used Bun so I can't offer anything there, but it's good to know you found a solution.
ballingt
ballingt•4mo ago
Huh, curious about this, we want to support bun but I don't know what might be different

Did you find this page helpful?