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

Uncaught ReferenceError: iconAndAliases #2105

Closed
5 of 30 tasks
Nerexbcd opened this issue Apr 26, 2024 · 4 comments
Closed
5 of 30 tasks

Uncaught ReferenceError: iconAndAliases #2105

Nerexbcd opened this issue Apr 26, 2024 · 4 comments
Labels
🐛 bug Something isn't working

Comments

@Nerexbcd
Copy link

Nerexbcd commented Apr 26, 2024

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

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

  • 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.)
@Nerexbcd Nerexbcd added the 🐛 bug Something isn't working label Apr 26, 2024
@Nerexbcd
Copy link
Author

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
Copy link
Member

@Nerexbcd Thanks I will make a fix!

@ericfennis
Copy link
Member

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

@stephenbielecki-avt
Copy link

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

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

3 participants