#FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
13 messages · Page 1 of 1 (latest)
Unfortunately this is the highest 👍 issue in Vite: https://github.com/vitejs/vite/issues/2433
AFAIU It has to do with the way that rollup does tree-shaking, it has to keep everything in memory.
it's just weird that nothing really changed on my project except storybook version.
What version are you coming from?
beta.12
You might have been just under the limit before, maybe. I'm not sure.
could be, not saying no
I think we had issues with storybook mdx files in beta.12 so it wasn't really building it fully and eventually now it all works and might be hitting it
ah, that could be, yeah. I'd suggest reading through that issue, there are some other workarounds that you could try that might help, but it mostly involves disabling sourcemaps or other things like that.