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.