mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-12-03 16:59:42 +00:00
`lucide-solid` and `@lucide/solid` have no `"type": "module"` and point every `types` export condition at `.d.ts` files, so TypeScript's Node16/NodeNext resolution reads the declarations as CommonJS. ESM consumers then get the module object instead of the component for per-icon default imports (`import Camera from '@lucide/solid/icons/camera'`), failing with TS2604/TS2322. Emit `.d.mts` declarations next to the existing `.d.ts` files (rollup rewrites their relative imports to `.mjs`) and select them via a nested `import` condition under `types`, as lucide-react already does with `.d.mts` files. The `.d.ts` files, top-level `types` field and runtime conditions are unchanged.
Lucide icon library for Solid applications.
About · Icons · Documentation · License
Lucide Solid
Implementation of the Lucide icon library for solid applications.
Installation
pnpm add lucide-solid
npm install lucide-solid
yarn add lucide-solid
bun add lucide-solid
Documentation
For full documentation, visit lucide.dev
Community
Join the Discord server to chat with the maintainers and other users.
License
Lucide is licensed under the ISC license. See LICENSE.
Sponsors
Bronze 🥉
Other contributors 💸
You can find all our past and non-recurring financial contributors at our Open Collective page.