Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is @lucide/shared #2106

Closed
5 of 30 tasks
MozzieMD opened this issue Apr 26, 2024 · 14 comments · Fixed by #2109
Closed
5 of 30 tasks

Where is @lucide/shared #2106

MozzieMD opened this issue Apr 26, 2024 · 14 comments · Fixed by #2109
Labels
🐛 bug Something isn't working

Comments

@MozzieMD
Copy link

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

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

[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

  • 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.)
@MozzieMD MozzieMD added the 🐛 bug Something isn't working label Apr 26, 2024
@laryhills
Copy link

I have the same issue, shared folder not in node_modules

@Awesomeplayer165
Copy link

also have this problem

@Awesomeplayer165
Copy link

is there a workaround anyone has found temporarily?

@keedyc
Copy link

keedyc commented Apr 27, 2024

I also ran into this 😅

@MozzieMD
Copy link
Author

MozzieMD commented Apr 27, 2024

is there a workaround anyone has found temporarily?

Install older version )
0.372 Works fine for me

@cliffordkleinsr
Copy link

cliffordkleinsr commented Apr 27, 2024

+ 1

@rakanus
Copy link

rakanus commented Apr 27, 2024

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

@laryhills
Copy link

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
Copy link

rakanus commented Apr 27, 2024

This fixed it for me ..

pnpm i lucide-svelte@0.375.0

CleanShot 2024-04-27 at 12 23 05

@laryhills
Copy link

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
Copy link

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

@spidi123q
Copy link

getting same error with lucide-svelte@0.375.0

@ericfennis
Copy link
Member

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
Copy link
Member

Fix published on lucide-svelte@0.376.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants