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

Revert .mjs modules in build for Lucide React #1471

Merged
merged 3 commits into from
Aug 6, 2023

Conversation

ericfennis
Copy link
Member

Closes: #1446 #1457

Reverting switch to .mjs modules. Probably causing issues in NodeJS because it resolves in a different way than classic .js modules.

Not sure if this will fix it but we need to test this if this works.

@github-actions github-actions bot added the ⚛️ react package Lucide React Package label Aug 1, 2023
@ericfennis
Copy link
Member Author

🚀 Released test package on [email protected]

@sukalov
Copy link

sukalov commented Aug 8, 2023

if you don't wanna downgrade next, you can just specify the path to 'lucide-react' module.
smth like this import { Sun, Moon } from '../../node_modules/lucide-react';. worked for me

@aikins01
Copy link

aikins01 commented Aug 8, 2023

Fixed it for me!

realguse pushed a commit to realguse/lucide that referenced this pull request Dec 25, 2024
* switch to different build strategy for dynamicIconImports

* add remove for dynamicIconImports files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚛️ react package Lucide React Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vercel/Next.js/React/Node 'too many open files' error
3 participants