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

Lucide Icons errors when deploy to vercel #1513

Closed
messaddek opened this issue Aug 16, 2023 · 4 comments
Closed

Lucide Icons errors when deploy to vercel #1513

messaddek opened this issue Aug 16, 2023 · 4 comments
Labels
🐛 bug Something isn't working

Comments

@messaddek
Copy link

Prerequisites

  • Version: 0.263.1
  • Are you running from source/main: main
  • Are you using a released build: N/A
  • Operating system: Vercel
  • Bits: N/A

Step to reproduce

Deploy app to vercel, the build pass, but the page render fails

Actual behavior

The icons shows

Any message or error

[Error: EMFILE: too many open files, open '/var/task/node_modules/lucide-react/dist/esm/icons/send-horizonal.mjs'] {
errno: -24,
code: 'EMFILE',
syscall: 'open',
path: '/var/task/node_modules/lucide-react/dist/esm/icons/send-horizonal.mjs',
page: '/'
}

Resources

  • Links
  • Screenshots
@messaddek messaddek added the 🐛 bug Something isn't working label Aug 16, 2023
@JanTrichter
Copy link
Contributor

JanTrichter commented Aug 17, 2023

@messaddek Can you check if it's related to this (#52646) and if the provided solution there helps with your issue? Maybe you could also check our build output and if it reaches any of the Vercel limits.

Otherwise we'd need more infos like in the issue linked above.

@abishekdevendran
Copy link

What would be the right syntax to use modularizeImports with Lucide-react?

@JanTrichter
Copy link
Contributor

What would be the right syntax to use modularizeImports with Lucide-react?

I'm not really familiar with React maybe @ericfennis can help?

@ericfennis
Copy link
Member

@messaddek You should update to the latest version of lucide-react.
This is related to #1457 and fixed in #1471.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants