storybook-nuxt icon indicating copy to clipboard operation
storybook-nuxt copied to clipboard

Can't use Nuxt Composables

Open jamespatrick91 opened this issue 2 years ago • 2 comments

So I'm trying to use nuxt composables like useRuntimeConfig() but then I'm getting the below error:

[nuxt] instance unavailable Error: [nuxt] instance unavailable at useNuxtApp (http://localhost:6006/node_modules/nuxt/dist/app/nuxt.js?v=55bb19df:172:13)

How do we go about passing the nuxt context?

jamespatrick91 avatar Sep 13 '23 01:09 jamespatrick91

please create a reproduction repo for me so i can check it out!

chakAs3 avatar Sep 13 '23 01:09 chakAs3

Make sure you're using nuxt composable only in

I think there's an open issue about this changing/breaking in nuxt 3.7

technicallypete avatar Sep 13 '23 16:09 technicallypete

Duplicate of https://github.com/storybook-vue/storybook-nuxt/issues/97

(reproduction at https://github.com/nuxt-modules/storybook/pull/619)

tobiasdiez avatar Jun 01 '24 04:06 tobiasdiez