lucide-icons / lucide

Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.
https://lucide.dev
ISC License
8.94k stars 380 forks source link

Uncaught ReferenceError: iconAndAliases #2105

Closed Nerexbcd closed 3 weeks ago

Nerexbcd commented 3 weeks ago

Package

Version

0.376.0

Can you reproduce this in the latest version?

Browser

Operating system

Description

Hi, I am currently developing a web page using lucide icons trough the CDN, earlier today the pages was working fine, but a few minutes ago, when i started working again the icons ware not showing, I checked the console and i was getting this error:

Uncaught ReferenceError: iconAndAliases is not defined
    at Object.createIcons (createIcons.ts:7:24)
    at users:133:16

Steps to reproduce

  1. Import the js script trough the CDN
  2. Try to execute the createIcons method

Checklist

Nerexbcd commented 3 weeks ago

The error is appearing due to a missing import, that was caused when @ericfennis, separated the createIcons function from the packages/lucide/src/lucide.ts file to packages/lucide/src/createIcons.ts but didn't copied the folowing line:

import * as iconAndAliases from './iconsAndAliases';
ericfennis commented 3 weeks ago

@Nerexbcd Thanks I will make a fix!

ericfennis commented 3 weeks ago

I've reverted the change, it's available on lucide@0.376.1

stephenbielecki-avt commented 3 weeks ago

Woo! Thanks for reporting this - noticed the same error and was about to report it. Thanks for getting to it so quickly @ericfennis ! 😄