-
Notifications
You must be signed in to change notification settings - Fork 51
3588 upgrade storybook to v10 #4184
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
base: develop
Are you sure you want to change the base?
Conversation
|
View your branch deployment here: https://mi6.github.io/ic-ui-kit/branches/3588-upgrade-storybook-v9-at-least/web-components Canary Web Components: https://mi6.github.io/ic-ui-kit/branches/3588-upgrade-storybook-v9-at-least/canary-web-components/ |
|
@GCHQ-Developer-299 is there any way for the team to continue using webpack? I’m a maintainer and am able to assist you with issues related to bundling/browser compatibility |
@evenstensberg the migration guide states that Storybook dropped Webpack back in V9 |
e9c7423 to
f5482ef
Compare
|
Cypress visual tests failed. |
fe6deec to
2037205
Compare
2037205 to
a0a65d8
Compare
Update storybook from version 8 to 10 refactor main.js -> main.mjs and convert it to ESM format as CommonJS is deprecated move wc storybook from webpack to vite runner
Updated to version 9.39.2 of eslint, which required updating syntax of config file (now called eslint.config.js) Some rules had to be disabled due to new failures
…new eslint config file
Removed storybook-addon-performance plugin which is not supported by storybook 9+ Replace webpack with vite update types/node package version change filetype of all files containing jsx from js to jsx remove webpack packages from package ref 3588
upgrade canary-react to storybook v10.1.11, along with the same refactors as required in react package
Upgrade package versions, convert main and preview files ref 3588
a0a65d8 to
743fcd6
Compare
Breaks when running 'start-storybook' on Ubuntu The linked issue npm/cli#4828 seems to be a dead link |

Summary of the changes
Putting up as a draft initially, i've been very cautious with commits too.
I've been using the
npx storybook@[VERSION] upgradecommand. Very helpful.Steps required to get web-components to work with storybook 10:
I also had to update our eslint version (related storybook moving to ESM?) from v8.x to v9.x which involved:
npx @eslint/migrate-config .eslintrc.jsonbut required a lot of manual workFor react and canary-react:
Nextjs:
Followon tickets?
Related issue
#3588