-
Notifications
You must be signed in to change notification settings - Fork 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
Fixed Storybook #5783
Fixed Storybook #5783
Conversation
"@storybook/addon-links": "^5.1.9", | ||
"@storybook/addons": "^5.1.8", | ||
"@storybook/react": "^3.4.11", | ||
"@storybook/addon-actions": "3.4.11", |
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.
This PR looks like nothing... it is. However, I was scratching my head for a whole day why downgrading didn't work. I finally literally copied the entire package.json version from the last working Storybook in the repo and it still wasn't working. And then it clicked. I've had this issue before. I had to delete the yarn.lock file and completely regenerate it, to have the proper deps in the lock file. 🙃
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.
what a doozy
@maestromac @Zhao-Andy, no rush on this, but this means at some point we can revisit #338. |
Although I have not changed any of the code for the application, the yarn.lock file had some severe modifications. I would assume all is good, given the build status, but I will do a smoke test in the AM. |
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.
Let's go back in time to go forward in time!
I can't wait for us to switch to webpack 4, it'll unlock many superpowers (babel 7, new storybook, various packages that can be upgraded and last but not least, it'll get us closer to Rails 6 which requires webpack 4).
I've done a smoke test and things appear to be good in the app. |
What type of PR is this? (check all applicable)
Description
We'll be using Storybook for the design system, so I've resuscitated it. We're currently using a downgraded version (3.4.11) because we are currently using webpacker 3. Latest versions of Storybook have been on webpack 4 for quite some time now.
There is a bigger task of upgrading webpacker, so for now we will stay with this downgraded version of Storybook. See this Tweet thread.
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
[optional] What gif best describes this PR or how it makes you feel?