SvelteStack / svelte-query

Performant and powerful remote data synchronization for Svelte
https://sveltequery.vercel.app
MIT License
813 stars 31 forks source link

Hydration modules exported twice #76

Open Jakeii opened 2 years ago

Jakeii commented 2 years ago

the following error is occurring when using hydrate or dehydrate and building sveltekit with rollup.

"hydrate" cannot be exported from ../../node_modules/@sveltestack/svelte-query/svelte/queryCore/core/hydration.js as it is a reexport that references itself.

I discovered it's because the hydration module is exported twice, so just removed one of them.

It's exported as part of './core' in the same file.