-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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>
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
Labels
No labels
