-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[7.0]: Addon paths are url encoded and broken on Windows #19534
Comments
Oh also, wanted to mention that Vite was updated to latest beta version. |
Running into this same issue as well in a SB7+Vite+Lit project on Windows 10.
This results in all addon scripts being added in the HTML using a encoded backslash instead of a slash (%5C), probably due to this being the windows path separator. This does not work for retrieving the scripts though, resulting in the addons not being loaded in, and when building the storybook this results in the build not working at all. Also ran into the ENOENT deps_temp -> deps issue a few times, seems to sometimes solve itself sporadically though. |
Oh wow, I hadn't thought of that, but that actually makes a lot of sense. Do you have any idea for a fix/workaround? or is it more a Vite problem? I have contemplated posting this issue on Vite's Github too, but I'm a bit shy about double-dipping. |
Same, still a bit in doubt about whether this is a Storybook or Vite issue, but looking at the fact that this only occurs for the sb-addons and that other Have tried to dig around to find the specific cause of this issue but no luck so far, hoping I can find some time to look into it a bit further later today. |
With regards to the ENOENT issue, it seems to occur for me only when I add dependencies to the Looking at your project however makes me think this might have just solved it by coincidence and that it can reoccur at any moment as you don't have a |
Yup, in regards to the ENOENT bug, it's pretty much out-of-the-box, and the only thing I have to do to make it consistent is delete the |
It first started occurring for me when I deleted the |
Thanks for filing this issue. It seems like there are two things happening, one is an issue in vite (ENOENT), which is filed at vitejs/vite#9986. For the windows issue, that definitely seems like a storybook bug. Could you try reverting back a few alphas, to see if it was something that started recently? Maybe try alpha.36, for example? |
Done! alpha.36 wasn't on the list of version, but it let me choose "35" which I did, and there seems to have been no issues with loading the files in that version. So your suspicions that it's been introduced recently is probably true. It looks like this when it's in dark mode (which it seems to be by default) |
Same for me, reverting to alpha.35 fixes the issue, also couldn't find alpha.36. This issue starts occurring from alpha.37. |
Yes, those default stories that it installs are not designed for dark mode, which was added in storybook 7. We'll get it straightened out, but you shouldn't need to worry about it for now. Thanks for the troubleshooting, that will help us narrow in on what happened! |
Ok, thank you for the clarification :) And happy to help! |
Good golly!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.43 containing PR #19589 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
When trying to run
yarn storybook
, storybook does start the server and at least runs the main skeleton of the app, but at some point gets errors and no stories or pages are loaded.Eventually the following error happens:
also in the browser I get the following errors in the console (This happens regardless of the previous error or not), I am not sure if this matters or not:
To Reproduce
If the error doesn't show up right away, delete the
.cache
folder fromnode_modules
and runyarn storybook
again. The error should now be consistent.Repo: https://github.com/nikki-cat/vue-vite-storybook-mini-repo
System
Additional context
Even the latest version has this problem unfortunately.
Also the system information shows "Windows 10", however I did upgrade it to 11.
I have most of this info in the repo, that I linked to.
Repo: https://github.com/nikki-cat/vue-vite-storybook-mini-repo
The text was updated successfully, but these errors were encountered: