You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
FYI, you just have to install broadcast-channel as a dev dependency to allow vite to parse the package in development.
It will not be included in production.
I get
broadcast-channel
error with 1.6 and SvelteKit .311Originally posted by @SomaticIT in #39 (comment)
The text was updated successfully, but these errors were encountered: