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
chore: Update Storybook to 5.3 #453
Conversation
The CI failure seems to be related to an issue where a type definition file created by a newer version of Typescript fails older versions of the compiler: aws-amplify/amplify-js#4389 (comment) It looks like upgrading to Typescript 3.7+ is how we would fix the issue. |
We could upgrade or we could petition Storybook to create declarations using 3.6.x. Upgrading to 3.7 could possibly put our library consumers in a similar predicament. This is sort of like Storybook adopting TS 4 without signaling a breaking change. There is a fairly large TS issue about this since a few people have viewed this declaration output change as a breaking change (but only happened from 3.6 to 3.7). |
We could open an issue against Storybook. Is there an issue on Typescript? Seems like that type of output change should have been behind a flag. I'm assuming 3.7 can read output from 3.6. That's a lesson to all of us... Bumping a shared library a minor version and making use of that feature is a breaking change. |
For posterity purposes: This is the Storybook issue. This is largely due to TypeScript's update to 3.6 to 3.7 where type definitions for getters are generated differently. This is TS's response, saying that it's working as intended. For a lot of library maintainers and Angular folks who are stuck on I'm working on a PR for Storybook, but in the meantime, I'll put a comment on there to see if they know of a quicker fix. |
This is getting resolved in Storybook itself. We're close 🤞 |
…torybook-update
…torybook-update
…torybook-update
Storybook has its own instance of emotion theming so we need to sync version as we upgrade it
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Someone give me an amen @NicholasBoll |
We may want a blurb in our documentation that mentions this issue. Someone using Storybook need to have their version of Storybook synced for our theming to work, right? It doesn't necessarily matter which patch version we require. |
Fixes #416
Summary
Update Storybook to ^5.3.x. This fixes a Firefox browser issue with ChromaticQA where a delay in loading fonts triggers visual regressions. Unfortunately we don't have an issue to track but this is what the ChromaticQA team had us do for a fix.
Checklist
yarn test
passespackage.json
canvas-kit-react
and/orcanvas-kit-css
universal modules, ifapplicable
Additional References