-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot start service: Host version "0.18.20" does not match binary version "0.19.7" #26112
Comments
Hi, thanks for reporting this. Are you able to reproduce this reliably? If so, can you please create a shareable reproduction via storybook.new? We prioritize bug reports that have reproduction. Thank you! 🙏 |
thx 4 the answer, unfortunately I can't reproduce it... I tried forking one of the projects in storybook.new and replacing with package.json. It worked. I also tried latest storybook 8 in my project but still the error. Then I guess there is something else affecting this. I will stay on lower vite version, that works still :). |
This sounds like it could be a versioning issue; hard to say without a repro. If you haven't already, can you please try to remove lock files, node_modules, yarn/npm cache, and reinstall? |
just got the same error. removed node_modules with lock, cleared npm cache, upgraded to last beta @storybook/cli v8.0.0 beta.5. First i got this error:
Now i get following error:
Looks like Host and Binary version error flipped. Edit:
Edit2:
With this i got it to work. Npm does not easily support these overwrites and i can't stick to pnpm. Looks like vite now upgraded Where storybook core-common uses And these conflict |
thanks @MarkusJLechner that's helpful context! i think that should be enough to get us started on investigating it. |
Nice @MarkusJLechner, I totally missed the second anwser by vanessayuenn.. sorry for that! |
I think this PR might help #26255 npm does, in fact, support overrides: |
Thanks, didn't know that works now with "overrides": {
"@storybook/builder-manager": {
"esbuild": "0.19.11"
}
} |
@MarkusJLechner do you still have a reproduction for me to try? You might also try to remove the And let us know if it's solved? |
Thanks for the fix! |
@MarkusJLechner rc-3 has just been released! Please try it out and report back 🙂 |
In vite there was a esbuild upgrade to I now get the error > npm list esbuild
+-- @storybook/addon-essentials@8.0.0-beta.1
| `-- @storybook/core-common@8.0.0-beta.1
| +-- esbuild-register@3.5.0
| | `-- esbuild@0.19.11 deduped
| `-- esbuild@0.18.20
+-- @storybook/vue3-vite@8.0.0-beta.1
| `-- @storybook/core-server@8.0.0-beta.1
| `-- @storybook/builder-manager@8.0.0-beta.1
| +-- @yarnpkg/esbuild-plugin-pnp@3.0.0-rc.15
| | `-- esbuild@0.19.11 deduped
| `-- esbuild@0.18.20
+-- storybook@8.0.0-rc.3
| `-- @storybook/cli@8.0.0-rc.3
| +-- @storybook/core-common@8.0.0-rc.3
| | `-- esbuild@0.20.1
| `-- @storybook/core-server@8.0.0-rc.3
| `-- @storybook/builder-manager@8.0.0-rc.3
| `-- esbuild@0.20.1 deduped
`-- vite@5.0.11
`-- esbuild@0.19.11 I have no idea how this can be solved better than with the overwrite. We installed Storybook into an existing Vite project, which may have caused issues due to version conflicts. Other than this esbuild version mismatch, we have encountered no other problems. If Vite is upgraded again to |
@vanessayuenn @shilman it sounds like |
We might just have to surface the workaround with |
Describe the bug
I get this error when I start storybook:
When I did install latest Storybook
7.6.17
I noticed this:Changed my vite version to
4.1.0-beta.0
now storybook works again.But the thing is that I have been using vite 5 since November without any problems.
To Reproduce
Install all latest versions and vite 5. This is my package.json:
System
Additional context
No response
The text was updated successfully, but these errors were encountered: