histoire-plugin-nuxt: provide from plugin not working with useNuxtApp in component #666
Open
6 tasks done
Labels
to triage
This issue needs to be triaged
Describe the bug
When using
provide
from a nuxt plugin, and inserting the provided value into a component usinguseNuxtApp
, the provided value will not be available, and an error will be thrown.Reproduction
Stackblitz: https://stackblitz.com/edit/nuxt-starter-7avtmp?file=components%2Ftest.vue
In
plugins/example.ts
:In
components/test.vue
Then try to start
histoire dev
with a story that includes<Test />
, and an error will be thrown thatnuxtApp.$example
isundefined
.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: