#Storybook does not work with [email protected]

1 messages · Page 1 of 1 (latest)

arctic lion
#

I am trying to set up a package using vite, react, tailwind and storybook, to create components for my other projects.

But I can't start storybook while using Vite, I get this error

@storybook/cli v7.6.7

info => Starting manager..
info => Starting preview..
X [ERROR] Cannot start service: Host version "0.19.11" does not match binary version "0.18.20"

Output of npm ls esbuild

[email protected] D:\Work\Other\AppsForYou\wordpress-blocks
├─┬ @storybook/[email protected]
│ ├─┬ @storybook/[email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected]
│ └─┬ @storybook/[email protected]
│   └─┬ @storybook/[email protected]
│     ├─┬ @yarnpkg/[email protected]
│     │ └── [email protected] deduped
│     └── [email protected] deduped
└─┬ [email protected]
  └── [email protected]

I see vite has a dependency on esbuild 0.19.11 and the rest of storybook uses 0.18

How do I fix this? Online the tutorials show to use vite@latest but it doesn't seem to work.

sick harbor
#

try downgrading to 5.0.8 which i can confirm works with storybook 7.6.4

oblique quest
#

FWIW, I'm using 5.0.10 with storybook 7.6.6 successfully

#

and now storybook 7.6.7 which is also working fine.

#

make that 7.6.8 😂

#

and now with vite 5.0.11 too

#

I'm using pnpm though. Might make a difference.