-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
I get broadcast-channel
error with 1.6 and SvelteKit .311
[plugin:vite:import-analysis] Failed to resolve import "broadcast-channel" from "node_modules/@sveltestack/svelte-query/svelte/queryCore/broadcastQueryClient-experimental/index.js". Does the file exist?
[/Users/finn/Documents/Projects/wip/node_modules/@sveltestack/svelte-query/svelte/queryCore/broadcastQueryClient-experimental/index.js:3:47]()
1 | import '../core';
2 | export async function broadcastQueryClient({ queryClient, broadcastChannel = 'svelte-query', }) {
3 | const { BroadcastChannel } = await import('broadcast-channel');
| ^
4 | let transaction = false;
5 | const tx = (cb) => {
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.
Originally posted by @SomaticIT in #39 (comment)
Metadata
Metadata
Assignees
Labels
No labels