react-simple-icons icon indicating copy to clipboard operation
react-simple-icons copied to clipboard

Error: EMFILE: too many open files

Open dct0 opened this issue 1 year ago • 6 comments

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 avatar Jan 08 '24 08:01 dct0

@dct0 can you help me with a live example to reproduce the problem

wootsbot avatar Jan 11 '24 01:01 wootsbot

@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

dct0 avatar Jan 11 '24 01:01 dct0

Any progress on this? I can't use this when deploying to Vercel

irg1008 avatar Apr 05 '24 16:04 irg1008

@irg1008 update version

wootsbot avatar Apr 18 '24 05:04 wootsbot

Updating to 9.5.0 did not resolve the issue for me

jessebs avatar May 16 '24 19:05 jessebs

Estoy trabajando en esto, las vacaciones fueron largas.

wootsbot avatar Aug 16 '24 01:08 wootsbot