You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to import an icon from carbon-icons-svelte, running vite build runs into an out of memory error. Increasing the memory to 16GB helps, but 2GB should be enough for such a small project.
I can reproduce JavaScript heap out of memory error on your reproduction but once I update deps to latest version I'm no longer getting the error but is very slow.
it builds much faster when importing icon like this
importAdd16from"carbon-icons-svelte/lib/Add16";
update of deps will require a change in vite config
Describe the bug
When trying to import an icon from
carbon-icons-svelte
, runningvite build
runs into an out of memory error. Increasing the memory to 16GB helps, but 2GB should be enough for such a small project.Could be a duplicate of #2433, but I am not sure.
Reproduction
https://github.com/nachtjasmin/vite-out-of-memory-bug
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:It's also reproducible on my ThinkPad, which runs Arch Linux.
Used package manager: yarn
Logs
debug-log.txt
The text was updated successfully, but these errors were encountered: