-
Notifications
You must be signed in to change notification settings - Fork 31
Add Vite example #22
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
Comments
Although SvelteKit is still in alpha and still a long way from beta. |
That might be true 😅 Then lets rearrange this issue to add a vite example since they recently added an official svelte template! |
SvelteKit beta is out now, and it seems that the
I tried adding
|
@mattjennings I'm here too. The problem I'm having is a different error in console:
Maybe this is your problem too? @amen-souissi anyway I think we need to understand why is there this code in
|
I moved |
I found a work-around: add this to optimizeDeps: {
include: ['detect-node', 'broadcast-channel']
}, Can you confirm it works? How can we fix this, @amen-souissi? |
@frederikhors, this workaround seems to work. I don't understand why What do you think? Update: optimizeDeps: {
exclude: ['@sveltestack/svelte-query'],
include: ['broadcast-channel']
}, |
I'm using Strange thing! |
I was getting the following error with SvelteKit after adding
Adding the const preprocess = require('svelte-preprocess');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
optimizeDeps: {
include: ['detect-node', 'broadcast-channel']
}
}
}
}; |
I'm surprised that you would have to add Maybe it's because it has a dependency on |
|
Upgrading to optimizeDeps: {
exclude: ["@sveltestack/svelte-query"]
} Just speaking for the |
I believe that all Svelte components should be listed in |
|
@JustinVoitel can you close this please? |
Can anyone recommend a client to use with |
@benwoodward a client for what? |
Sorry, a graphql client that complements |
Nevermind, https://github.com/lynxtaa/awesome-graphql-client seems to be a good companion to |
Uh oh!
There was an error while loading. Please reload this page.
It would be nice if there would be any reference on how to use svelte-query with Vite.
The text was updated successfully, but these errors were encountered: