Replies: 1 comment
-
|
I've tried import { defineSetupVue3 } from '@histoire/plugin-vue'
import { setupWorker } from 'msw/browser'
import { createPinia } from 'pinia'
import './assets/main.css'
export const worker = setupWorker()
export const setupVue3 = defineSetupVue3(async ({ app }) => {
const pinia = createPinia()
app.use(pinia)
await worker.start()
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello ! I'm trying to integrate MSW into Histoire (in a Vite/Vue) to mock requests, but I can't find a good way of doing it; I always end up with warnings like:
when running in the shell, but crashing when the story is in the browser:
Do you know a way to avoid those crashes?
See also #591
Beta Was this translation helpful? Give feedback.
All reactions