Bug: Making a query returns `process not defined` on CSR application
Problem:
I'm trying to implement SvelteQuery into our Svelte application which is using Routify for routing. We have only client side rendering and I am wrapping the app with
QueryClientProvider and trying to make a request with createQuery. When I do that I get the error ReferenceError: process is not defined. This seems like a Node error, and we don't do any server side rendering for now.
I tried changing imports from @tanstack/svelte-query to @sveltestack/svelte-query so that I use sveltestack's library and when I use that one it works, so I don't see anything specific from our app being a problem.
Do you have an idea on what could be causing this issue?2 Replies
secure-lavender•2y ago
Hi @sokic , could you submit a repro?
extended-salmonOP•2y ago
Sure, I’ll try to replicate our setup as simple as possible and will share 😀