Skip to content

lucide-svelte does not implement alias for icons #2580

@Kapsonfire

Description

@Kapsonfire

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

tried all of these

import Home from 'lucide-svelte/icons/home';
import Home from 'lucide-svelte/dist/icons/home.svelte';
  1. is taking from website
    https://lucide.dev/guide/packages/lucide-svelte#typescript-example

  2. Failed to resolve import "lucide-svelte/icons/home" from "src/lib/components/Icon.svelte". Does the file exist?

  3. [plugin:vite:import-analysis] Missing "./dist/icons/home.svelte" specifier in "lucide-svelte" package

Steps to reproduce

see above

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions