Skip to content

lucide-react causing compilation issues in Docker (macOS 15.4 Public Beta 4) #2855

Open
@mcorbelli

Description

@mcorbelli

Package

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

Version

0.477.0

Can you reproduce this in the latest version?

  • Yes
  • No

Browser

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

Operating system

  • Windows
  • Linux
  • macOS
  • ChromeOS
  • iOS
  • Android
  • Other/not relevant

Description

Since installing macOS 15.4 Public Beta 4, I have encountered an issue where using the lucide-react library causes the entire app to fail to compile when running inside Docker. If any component contains an icon from lucide-react, the app becomes unresponsive, and I am forced to restart Docker completely. However, the issue persists even after restarting Docker.

The app runs fine outside of Docker, and no errors are shown during the compilation process. After excluding every single import manually from a simple page, I traced the issue to the icons from lucide-react. Once all icons are commented out, everything works as expected.

Docker issue

Steps to reproduce

  1. Install lucide-react and use any icon in a component.
  2. Run the app inside Docker on macOS 15.4 Public Beta 4.
  3. The app build will complete but the page build will fail.
  4. No errors are shown during the build process.
  5. Restarting Docker doesn’t resolve the issue.

Checklist

  • 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions