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

Package Setup Issues in lucide-vue-next Leading to Module Resolution Errors #2087

Open
5 of 27 tasks
cschroeter opened this issue Apr 18, 2024 · 3 comments
Open
5 of 27 tasks
Labels
🐛 bug Something isn't working

Comments

@cschroeter
Copy link

cschroeter commented Apr 18, 2024

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

latest

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
  • Other/not relevant

Description

We're encountering an issue where the lucide-vue-next package seems not to be properly configured, resulting in module resolution errors. This issue has been observed when attempting to import the package, as shown in the error message below:

Error: Cannot find module '/Users/christian/Workspace/ark-ui/node_modules/lucide-vue-next/dist/esm'

Additionally, upon reviewing the package.json for lucide-vue-next, numerous warnings and suggestions have been identified, which might be contributing to this problem. Here is a screenshot of the linting output:

Linting output

Could we look into improving the package setup to prevent such issues? Suggestions and contributions to resolve these warnings are also welcome.

Steps to reproduce

Go to https://publint.dev/lucide-vue-next@0.371.0 and check warnings.

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.)
@cschroeter cschroeter added the 🐛 bug Something isn't working label Apr 18, 2024
@ericfennis
Copy link
Member

Thanks for reporting will check these issues!

@theDevelopper
Copy link

I am having the same issue. I am trying to write Stories for my components library using Histoire which uses vite.js and the reported error is thrown. This basically prevents me from either writing Stories/Documentation or from using these icons.

@theDevelopper
Copy link

through some debugging, I found that if the file node_modules/lucide-vue-next/dist/esm/lucide-vue-next.js would be renamed to index.js (node_modules/lucide-vue-next/dist/esm/index.js) then it works just fine.

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

No branches or pull requests

3 participants