lucide-icons / lucide

Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.
https://lucide.dev
ISC License
8.78k stars 367 forks source link

Where is @lucide/shared #2106

Closed MozzieMD closed 1 week ago

MozzieMD commented 1 week ago

Package

Version

0.376

Can you reproduce this in the latest version?

Browser

Operating system

Description

[vite] Pre-transform error: Failed to load url @lucide/shared (resolved id: @lucide/shared) in .../node_modules/lucide-svelte/dist/Icon.svelte. Does the file exist?

Steps to reproduce

!. Install, 2.Use

Checklist

laryhills commented 1 week ago

I have the same issue, shared folder not in node_modules

Awesomeplayer165 commented 1 week ago

also have this problem

Awesomeplayer165 commented 1 week ago

is there a workaround anyone has found temporarily?

keedyc commented 1 week ago

I also ran into this 😅

MozzieMD commented 1 week ago

is there a workaround anyone has found temporarily?

Install older version ) 0.372 Works fine for me

cliffordkleinsr commented 1 week ago

+ 1

rakanus commented 1 week ago

After dedicating four hours to identifying the problem, I discovered that the latest version of Lucide was lacking '@lucide/shared'. Indeed!

laryhills commented 1 week ago

After dedicating four hours to identifying the problem, I discovered that the latest version of Lucide was lacking '@lucide/shared'. Indeed!

Which previous version has it?

rakanus commented 1 week ago

This fixed it for me ..

pnpm i lucide-svelte@0.375.0

CleanShot 2024-04-27 at 12 23 05

laryhills commented 1 week ago

This fixed it for me ..

pnpm i lucide-svelte@0.375.0

CleanShot 2024-04-27 at 12 23 05

Will try out, thank you

MarArMar commented 1 week ago

Same error on linux, also fixed with setting lucide-svelte@0.375.0

spidi123q commented 1 week ago

getting same error with lucide-svelte@0.375.0

ericfennis commented 1 week ago

Sorry for the inconvenience. The Svelte package has a different build system than our other packages. @lucide/shared was designed to be included in the code, not as a dependency. @sveltejs/package was not able to include this.

I've made a fix to revert the shared package for @lucide/shared.

ericfennis commented 1 week ago

Fix published on lucide-svelte@0.376.1