#2981·lucide

Identifier 'Infinity' has already been declared - Lucide Vanilla

Author: igorcalabraroCreated Apr 1, 2025Updated Sep 16, 2026
Labels🐛 bug

Package

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

Version

0.486.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

On the web loads page, give the error "Identifier 'Infinity' has already been declared (https://cdn.jsdelivr.net/npm/lucide@latest:1)".

Lucide's package from jsdelivr is trying to declare Infinity, which is a reserved word in JS. I noticed then, when i use Lucide package from "unpkg", it doesn't give me an error and it works.

Due to recent unpkg failures, I had to update to JSDelivr, but the service continues to not work, generating this error and not being able to render the icons, displaying "lucide is not defined"

Steps to reproduce

  1. Import Lucide (Vanilla) directly from JSDeliver
  2. Watch the error on the web console

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