Skip to content

Icon type no longer exported. #1761

Description

@shyakadavis

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

Description

If I try to import the type of an icon for using in a TS env, I get the error:

"lucide-svelte" has no exported member named Icon . Did you mean XIcon ?

Steps to reproduce

import type { Icon } from 'lucide-svelte';

export type Route = {
	name: string;
	icon: Icon;
	href: string;
};

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