-
Notifications
You must be signed in to change notification settings - Fork 219
Conversation
Size Change: +1.79 kB (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
- core-js is needed for Storybook, at least as a workaround for an issue - https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#core-js-dependency-errors
f8b4d47
to
96f2d57
Compare
Rebased to address conflicts - ready for review! Keen to get this in so we can start writing new stories. (Will work on a branch based off this for now.) |
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.
In general, changes look okay but there are a variety of console warnings/errors depending on what component is being previewed. So it'd be good if you reviewed all the components to make sure any console warnings/errors that don't happen in the current storybook and do happen in this branch are addressed.
Also, I don't think it's impacted, but after you merge to master you'll need to make sure that the storybook deploy on merge to master still works and generates the storybook instance for public viewing.
I'm going to pre-approve but please don't merge until console errors/warnings differing from what's currently in master are handled.
Good point – I meant to come back to this, thanks for the reminder.
Yes will do! |
Checked them all on So here's what I'm thinking (assuming they are not introduced). Let's merge this PR as is - 🎉 we're upgraded! And then…
I'm leaning towards (2). Here's why:
What do you think @nerrad - sound like a plan? We have <10 stories total, so if we only need to do 2-3 each 👨👨👦👦. Going forward, we'll need to keep an eye on this to avoid stuff like this creeping in over time. Keen for ideas on that, but maybe we just need to get in the habit of using Storybook locally (I'm not)! Scroll down for ugly details: Storybook warnings/errors on
|
A note about one issue specifically @nerrad - I think this is because we have an explicit dependency on a specific old version – I upgraded both to 10.0.5 and it fixed the Storybook issue. I'm confused though, why do we have the devDependency, aliasing to Hopefully we can just upgrade to latest in the normal way 😄 |
Thanks for the analysis @haszari, I'm fine with merging as is given your report.
I'm okay with this approach but before you start it'd be good to at least identify what issues are story agnostic and log just issues for those things. Splitting up stories in parallel is good but you don't want folks fixing the same issue in each of their pulls.
I'm looking at the The reason why
This has huge potential impact - you can see this issue for reference so please don't upgrade in this branch. It's quite possible that the issues Nadir was experiencing with upgrading in the issue I linked to are no longer a problem with the latest versions of the components package but the impacts still need accounted for. To speak to the error around |
Woah, thanks @nerrad for explaining – I had a feeling it's complicated! I'll add issues for the specific errors – I think there's one or two that affect all storybook, and then a couple that affect individual stories. |
👍 - added one issue for the main, baffling build warning - #3060 The other issues are all specific to component stories ( Merging! |
Confirmed this is all still working - here's the travis job: https://travis-ci.com/github/woocommerce/woocommerce-gutenberg-products-block/jobs/378177518 I couldn't find a way to see the Storybook version on the generated site, but the https://woocommerce.github.io/woocommerce-gutenberg-products-block |
Fixes #3028
Upgrading Storybook to latest. More info / migration guides:
Changes:
npx sb upgrade
).core-js
. This is not strictly a dependency of Storybook but is needed as a workaround (our story build fails without it).There's more we can do - 6.0 has a bunch of cool new stuff (in particular: essentials + controls + docs). Saving that for other PRs since we don't need to do it to upgrade. Added a follow-up issue: #3041
How to test the changes in this Pull Request:
npm install
ornpm ci
.npm run storybook
.