react-simple-icons
react-simple-icons copied to clipboard
Error: EMFILE: too many open files
Description
Getting the following error when deploying on Vercel importing any icon.
[Error: EMFILE: too many open files, open '/var/task/vercel/path0/node_modules/.pnpm/@[email protected][email protected]/node_modules/@icons-pack/react-simple-icons/icons/SiGooglecloudcomposer.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/vercel/path0/node_modules/.pnpm/@[email protected][email protected]/node_modules/@icons-pack/react-simple-icons/icons/SiGooglecloudcomposer.mjs'
}
I have not imported SiGooglecloudcomposer
anywhere.
Related issues:
- https://github.com/phosphor-icons/react/issues/45
- https://github.com/lucide-icons/lucide/issues/1446
- https://github.com/lucide-icons/lucide/issues/1457
I am using Astro, so I cannot use the Next.js fix. My current workaround is importing the desired icons as follows:
import {
default as SiPython,
defaultColor as SiPythonHex
} from "@icons-pack/react-simple-icons/icons/SiPython.mjs";
EDIT here's another workaround:
<svg aria-label="Github logo" viewBox="0 0 24 24" height={12} width={12}>
<path d={siGithub.path} />
</svg>
Repro
npm create astro@latest npx astro add react npm install @icons-pack/react-simple-icons Add an icon to the home page Deploy to vercel using '@astrojs/vercel/serverless' https://docs.astro.build/en/guides/deploy/vercel/#adapter-for-ssr
@dct0 can you help me with a live example to reproduce the problem
@wootsbot See this repo https://github.com/dct0/react-simple-icons-test for a minimal example and deployment. Updated repro instructions to be more specific
Any progress on this? I can't use this when deploying to Vercel
@irg1008 update version
Updating to 9.5.0 did not resolve the issue for me
Estoy trabajando en esto, las vacaciones fueron largas.