histoire-dev / histoire

⚡ Fast and beautiful interactive component playgrounds, powered by Vite
https://histoire.dev
MIT License
3.05k stars 178 forks source link

Nuxt3 + Vuetify nuxt module : Could not find defaults instance #701

Open guilhem-kieny opened 3 months ago

guilhem-kieny commented 3 months ago

Describe the bug

I cannot use histoire with nuxt and vuetify-nuxt-module, i have this error : [Vuetify] Could not find defaults instance Locally i also have an 500 error : 500 useNuxtApp(...).hook is not a function, but I can't reproduce it on stackblitz. I use pnpm run story:dev to start the project. Is likely an issue with vuetify...

Reproduction

https://stackblitz.com/edit/nuxt-starter-ggyx9e?file=nuxt.config.ts,histoire.config.ts,package.json,components%2FformValidation.story.vue

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.3 - /usr/local/bin/pnpm
  npmPackages:
    @histoire/plugin-nuxt: ^0.17.14 => 0.17.14 
    @histoire/plugin-vue: ^0.17.14 => 0.17.14 
    histoire: ^0.17.14 => 0.17.14

Used Package Manager

pnpm

Validations

stackblitz[bot] commented 3 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.