-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix Storybook #489
Fix Storybook #489
Conversation
@@ -1,7 +1,6 @@ | |||
.DS_Store | |||
.sass-cache | |||
node_modules | |||
**/package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn. I wonder why those weren't generated on my end. Mind checking them in on this branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try the lerna bootstrap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It didn't create them for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I went and ran:
lerna exec -- npm i
Then bootstrapped again just to be sure, and they're all in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
I had to do a couple of things to fix Storybook on the
dev
branch:Add an
.nvmrc
so that we can all more easily use Node >=8 (and npm@5)Add an
.npmrc
so that anything wenpm install
will be saved using the exact version.Update all of the Storybook dependencies to
3.4.3
with:Remove
**/package-lock.json
from.gitignore
and add the lockfiles to git, hopefully to avoid issues like these in the future.The root of the problem appears to have been that it was easy to end up with different versions of Storybook and its "addon" dependencies installed as we switch from branch to branch. This is what I think would lead Storybook to find that its peer dependencies (such as
babel-core
) weren't installed.