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.94k stars 380 forks source link

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

Open cschroeter opened 1 month ago

cschroeter commented 1 month ago

Package

Version

latest

Can you reproduce this in the latest version?

Browser

Operating system

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

ericfennis commented 1 month ago

Thanks for reporting will check these issues!

theDevelopper commented 4 days ago

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 commented 4 days ago

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.