Skip to content
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

Package crashes npm, yarn, & node several times #132

Open
alvissraghnall opened this issue Feb 20, 2022 · 3 comments
Open

Package crashes npm, yarn, & node several times #132

alvissraghnall opened this issue Feb 20, 2022 · 3 comments

Comments

@alvissraghnall
Copy link

I'd tried installing and using (only successfully installed once) the package alongside carbon-components-svelte (worked pretty fine), but it almost never actually successfully installed. It'd always crash during the installation process via yarn.
Only time it actually installed, upon running "npm run dev", or "yarn dev", nodejs throws "Heap Out Of Memory Error". Debugged quite a while and discovered the problem's from this package.
Was first using elderjs, but switched up to plain ol' svelte ( as i debugged). Nothing changed.

I run Mint 20.2 (Uma) and Windows 10.
Nodejs v16.14.0
npm v8.3.1
yarn v1.22.17

@metonym
Copy link
Collaborator

metonym commented Feb 20, 2022

How are you importing icons?

I'd recommend the direct import method, unless you are using optimizeImports from carbon-preprocess-svelte:

import Add16 from "carbon-icons-svelte/lib/Add16";

@rob3r7
Copy link

rob3r7 commented Feb 22, 2022

I had success with set NODE_OPTIONS=--max-old-space-size=8192

@DorskFR
Copy link

DorskFR commented Feb 23, 2022

Same issue with a crash with npm run build or npm run dev on an mbp m1 with node v16.13.1
edit: fixed using optimizeImports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants