N
Nuxt6mo ago
MolakDul

Nuxt Storybook

I tried to install Storybook on a fresh Nuxt 3 project with just some linter and tailwind installed but after running the two following commands: npx nuxi@latest module add storybook npx storybook-nuxt init i get this error: $ nuxt prepare ℹ Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 5:53:04 PM ERROR Cannot read properties of undefined (reading 'STORYBOOK') 5:53:04 PM at setup (node_modules/@nuxtjs/storybook/dist/module.mjs:122:25) at normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:2112:37) at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2415:95) at async initNuxt (node_modules/nuxt/dist/index.mjs:4233:7) at async loadNuxt (node_modules/nuxt/dist/index.mjs:4331:5) at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2570:19) at async Object.run (node_modules/nuxi/dist/chunks/prepare.mjs:53:18) at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.9edf0930.mjs:1648:16) at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.9edf0930.mjs:1639:11) at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.9edf0930.mjs:1777:7) ERROR Cannot read properties of undefined (reading 'STORYBOOK') 5:53:04 PM error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ❌ Package installation failed with code 1 Any idea how i can fix this issue ?
3 Replies
SpiKe.
SpiKe.6mo ago
https://github.com/nuxt-modules/storybook/issues/538 - Version 8.1 was released on Friday to fix this problem. Alternatively you can try to use the github repo as source npm i -D nuxt-modules/storybook
GitHub
[8.0.0]Cannot read properties of undefined (reading 'STORYBOOK'...
error log: => Failed to build the preview TypeError: Cannot read properties of undefined (reading 'STORYBOOK') at setup (file:///Users/l.rain/Documents/workspace/deorderbook-monorepo...
MolakDul
MolakDulOP4mo ago
Hooo nice i will have a look !
Want results from more Discord servers?
Add your server