Skip to content

Lucide Labs Icons Not Working in Angular (LucideAngularModule.pick with @lucide/lab) #6

@MeMeeMee

Description

@MeMeeMee

Hello everyone 👋

I’m trying to use Lucide Labs icons in an Angular project following the official Lucide Angular documentation. The core Lucide icons work as expected, but icons from @lucide/lab fail to render, even though I followed all the steps from the guide.

UserModule.ts

import { ShoppingBasket, LucideAngularModule } from 'lucide-angular';
import { broom } from '@lucide/lab';

@NgModule({
  declarations: [UserComponent],
  imports: [
    CommonModule,
    LucideAngularModule.pick({ ShoppingBasket, broom }),  // ⛔ broom doesn't render
  ]
})
export class UserModule { }

UserComponent.html

<div class="bg-blue-100 w-full h-full">
    <i-lucide name="shopping-basket" [strokeWidth]="2"></i-lucide>
    <i-lucide name="broom" [strokeWidth]="2"></i-lucide>   <!-- ⛔ broom doesn't render -->
</div>

Result
Image

Console Error

Component update failed: The "broom" icon has not been provided by any available icon providers.
Error: The "broom" icon has not been provided by any available icon providers.
    at LucideAngularComponent.ngOnChanges (lucide-angular.js:24920)
    at LucideAngularComponent.rememberChangeHistoryAndInvokeOnChangesHook (chunk-ULLLBF5Y.js:6460)
    at callHookInternal (chunk-ULLLBF5Y.js:7064)
    ...

The broom icon (and other @lucide/lab icons) should render when passed into LucideAngularModule.pick() the same way core Lucide icons do.
Thanks for your help — and for your awesome work on Lucide! 💙

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions