-
-
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
Storybook failes to start when there is no node_modules folder #8863
Comments
Someone installs storybook... This adds dependencies... So the situation where the user has no dependencies and no Or is there some way of adding storybook without adding dependencies/ I think the expected behaviour is the error actually. If you run |
I'm having storybook globally installed (it actually comes from another global tool). I found out this on a project with no dependencies because we're just displaying SVG icons in Storybook. We have one story file with |
I'm open to accepting a PR to fix this, but we don't want to actively support installing storybook globally. We don't document this is possible anywhere. I suspect that:
Is just the tip of the iceberg |
We've just run into this issue as well. We have a multi-package repo using lerna which "hoists" shared packages to repo root. This means that our package may not have any specific
Fixed by making an empty |
It seems there's a PR fixing this in find-cache-path: |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Seems like this issue has been fixed in v3.2.0 |
As the title says.
The issue is with this line:
_path.default.join(cacheDir, 'records.json'),
cacheDir
will be undefined byfind-cache-path
if no node_modules exist.It's just a minor bug as usually you tend to have node_modules.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Works :)
The text was updated successfully, but these errors were encountered: