Skip to content

SvelteKit integration #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yussdev opened this issue Apr 20, 2021 · 10 comments
Closed

SvelteKit integration #39

yussdev opened this issue Apr 20, 2021 · 10 comments

Comments

@yussdev
Copy link

yussdev commented Apr 20, 2021

is there a way to integrate svelte-query with SvelteKit ?

@tradaonline
Copy link

Any update on this issue? I'm waiting for this too. Hope coming soon.

@Jonzy3000
Copy link

Is it related to #22?

@benmccann
Copy link
Contributor

detect-node 2.1.0 now has an ESM version. Can anyone who hit this issue check if it is now fixed?

@benmccann
Copy link
Contributor

This should be considered fixed now that #44 has been merged

@benmccann
Copy link
Contributor

svelte-query 1.4.1 has been released and should be fully compatible with SvelteKit

@benmccann
Copy link
Contributor

It looks like there's still a minor issue, but this can be closed in favor of #45

@freddez
Copy link

freddez commented Jul 16, 2021

Does someone have a working example with sveltekit ?
I always get this error :

ReferenceError: require is not defined
    at /node_modules/broadcast-channel/dist/es/method-chooser.js:19:20

@freddez
Copy link

freddez commented Jul 16, 2021

Does someone have a working example with sveltekit ?
I always get this error :

ReferenceError: require is not defined
    at /node_modules/broadcast-channel/dist/es/method-chooser.js:19:20

Sorry if it is the wrong channel, but I've fixed my issue by adding :

optimizeDeps: {include: ['broadcast-channel']},

in svelte.config.js (config.kit.vite.optimizeDeps)

@SomaticIT
Copy link
Collaborator

Hello,

A new version (v1.5.0) of this library has been published today.
This version makes broadcast-channel an optional dependency.
This should fix all problems with svelte-kit.

If you need to use the experimental broadcastQueryClient, you now need to install it manually (see: broadcastQueryClient).

If you still encounter issues with v1.5.0. Please open a new issue.

@lkj4
Copy link

lkj4 commented Nov 20, 2021

how does it integrate with SvelteKit's load function which provides a super-powered fetch, does svelte-query deal with this and all other SvelteKit extras? Would love to see this in the readme right at the top btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants