N
Nuxt6mo ago
pook1574

nuxt/storybook does not work

I'm pretty new to Nuxt, but I don't know what I'm missing with these 'zero config' modules, but I haven not had a good experience so far. Is anyone able to get this Storybook module to work - https://storybook.nuxtjs.org/getting-started/setup ? I'm just trying test it , so I made a boilerplate project and the only other module I have is the Vuetify module. I'm getting this error when I run npm run dev these are the steps I took (exaclty whats on the documentation) * install npx nuxi@latest module add storybook * then I built the default files with this - npx storybook-nuxt init Attached is the picture of the error, my package.json and nuxt.confit.ts file. What am I missing here?
Nuxt Storybook
Setup - Nuxt Storybook
Using Storybook in your Nuxt project is only one command away ✨
No description
No description
No description
2 Replies
danielroe
danielroe6mo ago
might be a storybook issue. does it make a difference to turn on shamefully hoisting?
pook1574
pook1574OP6mo ago
How is that configurable in a Nuxt project? this is the only documentation I found on shamefully-hoist , but its not clear to me how to apply it https://nuxt.com/docs/api/nuxt-config#hoist. @danielroe , would I make a .npmrc file and set shamefully-hoist=true ? If so, I did that and the same issue came up in console.
Nuxt
Nuxt Configuration
Discover all the options you can use in your nuxt.config.ts file.

Did you find this page helpful?