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
Im using indexedDB with @tanstack/vue-query to persist query state across refreshes, but it generates some kind of conflict with histoire, I tried setting fake/indexedDB like I do when testing with no success.
I tried creating a new instance of vue-query, the problem is that my stores still import the original vue-query client where indexedDB is imported, generating this conflict:
Error while collecting story C:/xampp/htdocs/legendaryum/web-app/src/stories/GenericCard.story.vue:
ReferenceError: indexedDB is not defined
at Module.createStore (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/idb-keyval/dist/index.js:10:19)
at C:\xampp\htdocs\legendaryum\web-app\src\plugins\vue-query.ts:34:56
at async ViteNodeRunner.runModule (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:342:5)
at async ViteNodeRunner.directRequest (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:326:5)
at async ViteNodeRunner.cachedRequest (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:189:14)
at async ViteNodeRunner.dependencyRequest (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:223:12)
at async C:\xampp\htdocs\legendaryum\web-app\src\stores\payments.ts:4:31
at async ViteNodeRunner.runModule (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:342:5)
at async ViteNodeRunner.directRequest (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:326:5)
at async ViteNodeRunner.cachedRequest (file:///C:/xampp/htdocs/legendaryum/web-app/node_modules/histoire/node_modules/vite-node/dist/client.mjs:189:14)
Describe the bug
Im using indexedDB with @tanstack/vue-query to persist query state across refreshes, but it generates some kind of conflict with histoire, I tried setting fake/indexedDB like I do when testing with no success.
My setup:
I tried creating a new instance of vue-query, the problem is that my stores still import the original vue-query client where indexedDB is imported, generating this conflict:
Reproduction
Run
npm run story:dev
Stackblitz Repro
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: