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
[Bug]: Storybook and Radix-vue memory leak #898
Comments
@dragos199993 have you tried changing the storybook major version to either latest or v7.6.19 maybe? |
🤔 only used the latest one (8.0.10). Do you suggest to switch to an older one? |
Yeah. Let's give it a try. Also seems like there's another latest 8.0.10 |
ah apologies, just edited the previous comment 😆 using 8.0.10. I'll give a try with an older one rn |
unfortunately no luck, I suspect this has something to do with vue-component-meta. While I was doing the debug on v8+ storybook, noticed that I get the same error. Now after changing to latest v7, I always get this 🤔 I am confused since this is happening on an extremely simple project, just started and it seems to be a type import issue somehow🤷
|
Try remove the Prop/Emit types, as well as |
Maybe this helps, but I created from scratch another example here https://github.com/dragos199993/radix-vue-storybook-memory-leak Just npm install and then npm run storybook |
@dragos199993 might be your local machine/browser issue. Running locally and on Stackblitz has no issue. Do follow this up on the Storybook issue yaa 😁 |
Just a quick question, are you perhaps developing in a container? As I had this exact issue when developing in a dev-container. When I ran this locally on my desktop, I had no issue. |
Environment
Link to minimal reproduction
http://nolink
Steps to reproduce
Describe the bug
Started a vue app from scratch and added strybook 8.0.9 and Radix-vue with shadcn-vue. When I try to render a component into a story DropdownMenuContent and open storybook with npm run storybook, it fails to render and it freezes the browser. It crashes the app after 30s-1min with a FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory error.
What I tried:
bumped the space size for NODE using --max-old-space-size=32768
duplicated vite.config.js into storybook, then pointed via main.ts to the colocated one, just to exclude random configurations from there
sourceMap: false from viteFinal within main.ts in .storybook
Apologies if this isn't really a radix-vue issue!
Expected behavior
To render DropdownMenuContent correctly without a memory leak.
Context & Screenshots (if applicable)
Opened a bug as well on storybook repository, but unfortunately got no response.
storybookjs/storybook#26935
The text was updated successfully, but these errors were encountered: