You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to migrate our app to Svelte 5, when creating a new sample application, SvelteKit generates a project with the ModuleResolution sets to "NodeNext" by default. From the documentation it looks like this is the new default and standardized way to do this. However, when I try to use Lucide Svelte, it's no longer possible to import the icons like this (which still works well with "moduleResolution": "node") : import { ArrowDownIcon } from 'lucide-svelte';
I get an error saying that : Module '"lucide-svelte"' has no exported member 'ArrowDownIcon'.ts(2305)
I guess this has something to do with the exports line in the package.json but I'm not sure.
Steps to reproduce
npx sv create my-app
select typescript and library mode
pnpm add lucide-svelte@latest
import { ArrowDownIcon } from 'lucide-svelte';
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.)
The text was updated successfully, but these errors were encountered:
Package
Version
0.474.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
Hello,
We are trying to migrate our app to Svelte 5, when creating a new sample application, SvelteKit generates a project with the ModuleResolution sets to "NodeNext" by default. From the documentation it looks like this is the new default and standardized way to do this. However, when I try to use Lucide Svelte, it's no longer possible to import the icons like this (which still works well with "moduleResolution": "node") :
import { ArrowDownIcon } from 'lucide-svelte';
I get an error saying that :
Module '"lucide-svelte"' has no exported member 'ArrowDownIcon'.ts(2305)
I guess this has something to do with the exports line in the package.json but I'm not sure.
Steps to reproduce
Checklist
The text was updated successfully, but these errors were encountered: