-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Chore: Enforce TypeScript on Storybook #22317
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
Conversation
| - name: Build Storybook to sanity check components | ||
| run: npm run build-storybook ; rm -rf ./storybook-static | ||
| env: | ||
| NODE_OPTIONS: --max_old_space_size=8192 |
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.
We need all this memory to build the storybook? 4096 isn't enough?
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.
We need it (at least while we don't fix the typings issues I've cited), but this heap size is now set on the npm script. Take a look at "storybook" and "build-storybook" in package.json.
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.
I mean, I had a memory issue to run the storybook I was thinking if it's necessary 8192 because I solve using 4096, doesn't affect the review, it's just for curiosity :P
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.
Btw, we still have the issue with cookie and cookie-parser when trying to launch storybook 😞
Proposed changes (including videos or screenshots)
Rewrite some Storybook stories in TypeScript, as an example.
Issue(s)
Steps to test or reproduce
Further comments
It's important to note that Storybook's Webpack configuration is mixing
babel-loaderandts-loader. It unnecessarily increases memory usage and prevent us to rewrite a.storybook/main.tsbecause there are many suppressed TypeScript errors across the code.