Skip to content
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

Merged
merged 9 commits into from
May 11, 2018
Merged

Fix Storybook #489

merged 9 commits into from
May 11, 2018

Conversation

shawnbot
Copy link
Contributor

@shawnbot shawnbot commented May 11, 2018

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 we npm install will be saved using the exact version.

  • Update all of the Storybook dependencies to 3.4.3 with:

    npm i @storybook/{react,addons,addon-options}
  • 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.

@shawnbot shawnbot requested a review from a team May 11, 2018 17:55
@@ -1,7 +1,6 @@
.DS_Store
.sass-cache
node_modules
**/package-lock.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
Should we direct that at modules/ folders?

Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try the lerna bootstrap?

Copy link
Contributor Author

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. ☹️

Copy link
Contributor Author

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.

Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@shawnbot shawnbot merged commit e33306e into dev May 11, 2018
@shawnbot shawnbot deleted the fix-storybook branch May 11, 2018 20:00
@jonrohan jonrohan restored the fix-storybook branch May 11, 2018 20:51
@jonrohan jonrohan deleted the fix-storybook branch June 13, 2018 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants