lucide icon indicating copy to clipboard operation
lucide copied to clipboard

[react] 0.470.0+ crashing deployments

Open rub1e opened this issue 1 month ago • 20 comments

Package

  • [ ] lucide
  • [ ] lucide-angular
  • [ ] lucide-flutter
  • [ ] lucide-preact
  • [x] lucide-react
  • [ ] lucide-react-native
  • [ ] lucide-solid
  • [ ] lucide-svelte
  • [ ] lucide-vue
  • [ ] lucide-vue-next
  • [ ] Figma plugin
  • [ ] source/main
  • [ ] other/not relevant

Version

0.470.0+

Can you reproduce this in the latest version?

  • [x] Yes
  • [ ] No

Browser

  • [ ] Chrome/Chromium
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge
  • [ ] iOS Safari
  • [ ] Opera
  • [x] Other/not relevant

Operating system

  • [ ] Windows
  • [ ] Linux
  • [ ] macOS
  • [ ] ChromeOS
  • [ ] iOS
  • [ ] Android
  • [x] Other/not relevant

Description

NOTE: if this is affecting anyone currently, downgrading to 0.469.0 solves it for me

From 0.470.0 using lucide-react icons breaks my react-router v7 deployments.

No problems building locally and serving with react-router serve, and no problem running react-router build for the deployment - no errors or warnings.

But visiting the page seems to crash the Netlify lambda itself (also tested on Vercel). Here is the error log from Netlify:

Jan 17, 01:20:06 PM: ERROR Uncaught Exception {"errorType":"Error","errorMessage":"EMFILE: too many open files, open '/var/task/node_modules/lucide-react/dist/esm/icons/message-circle.js'","code":"EMFILE","errno":-24,"syscall":"open","path":"/var/task/node_modules/lucide-react/dist/esm/icons/message-circle.js","stack":["Error: EMFILE: too many open files, open '/var/task/node_modules/lucide-react/dist/esm/icons/message-circle.js'"]}

Also note that this isn't a react v19 issue, it's happening on 18.3 as well

Steps to reproduce

Here's a minimal repro: https://github.com/rub1e/lucide-react-repro

It's just the Netlify React Router starter with one page with a single lucide icon

Here it is crashing on netlify: https://venerable-sunshine-738964.netlify.app/

Checklist

  • [x] I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)

rub1e avatar Jan 17 '25 13:01 rub1e