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

Error: EMFILE: too many open files #208

Open
dct0 opened this issue Jan 8, 2024 · 4 comments
Open

Error: EMFILE: too many open files #208

dct0 opened this issue Jan 8, 2024 · 4 comments

Comments

@dct0
Copy link

dct0 commented Jan 8, 2024

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/@icons-pack+react-simple-icons@9.2.0_react@18.2.0/node_modules/@icons-pack/react-simple-icons/icons/SiGooglecloudcomposer.mjs'] {
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/var/task/vercel/path0/node_modules/.pnpm/@icons-pack+react-simple-icons@9.2.0_react@18.2.0/node_modules/@icons-pack/react-simple-icons/icons/SiGooglecloudcomposer.mjs'
}

I have not imported SiGooglecloudcomposer anywhere.
Related issues:

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

@wootsbot
Copy link
Member

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

@dct0
Copy link
Author

dct0 commented Jan 11, 2024

@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

@irg1008
Copy link

irg1008 commented Apr 5, 2024

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

@wootsbot
Copy link
Member

@irg1008 update version

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

3 participants