-
Notifications
You must be signed in to change notification settings - Fork 46
Crashing and performance issues with storybook 5.3 #82
Comments
I've run into this problem unrelated to this project. Webpack can use a lot of memory compiling Typescript. I've solved it by including these options in my storybook script in package.json |
@UberMouse Hey, did you manage to get this to work with storybook? Because even after adding this param my problem persists and storybook doesn't seem to even pay attention to this option. Seems that the memory stays at 2k or am I looking at the wrong thing |
You need to add the options to the command slightly differently, here is my script command for reference |
@UberMouse Looks like I got it to work but the image I uploaded is still relevant afterward: |
I've been using
react-docgen-typescript-loader
ever since@storybook/addon-docs
came out.Recently whilst upgrading to the beta and eventually to the stable
5.3
i've experienced major performance issues where compile times are way longer.Now that would be one thing but recently my project started not compiling at all and running out of memory while trying to serve webpack, all those problems make storybook unusable right now and made me disable the plugin after trying seemingly everything.
Here is my out of memory error:
My
main.js
:My
preview.js
:My
Webpack.config.js
:The text was updated successfully, but these errors were encountered: