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
Svelte Query only outputs ESM modules, it works great while we are on the vite, vitest or sveltekit ecosystem. However, when trying to build a library, using jest causes the tests to break since jest doesn't compile node_modules. Writing test cases will lead to the following error:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Based on #4768 (comment)
Svelte Query only outputs ESM modules, it works great while we are on the vite, vitest or sveltekit ecosystem. However, when trying to build a library, using jest causes the tests to break since jest doesn't compile node_modules. Writing test cases will lead to the following error:
Since I was trying it out on a PNPM monorepo, I had to add the following config to compile svelte-query
Would be nice to add this info to the documentation
Beta Was this translation helpful? Give feedback.
All reactions