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

[Major-Bug] Module not found: lucide-react #1148

Closed
KaramveerSinghSidhu opened this issue Aug 8, 2023 · 4 comments
Closed

[Major-Bug] Module not found: lucide-react #1148

KaramveerSinghSidhu opened this issue Aug 8, 2023 · 4 comments

Comments

@KaramveerSinghSidhu
Copy link

I have created a few next js 13 apps using the https://ui.shadcn.com/docs/installation. When ever i try to use a any component that uses lucide-react i get this error

./node_modules/lucide-react/dist/cjs/lucide-react.js:2:0
Module not found: Can't resolve 'C:\Users\PC\Desktop\gla3\node_modules\lucide-react\dist\cjs\icons\check'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./components/ui/select.tsx

@KaramveerSinghSidhu KaramveerSinghSidhu changed the title Module not found: lucide-react [Major-Bug] Module not found: lucide-react Aug 8, 2023
@JairHuamanBellido
Copy link

I'm faced the same issue, I think it's related to [email protected] , I downgraded the version to 13.4.12 and it worked.

@JairHuamanBellido
Copy link

There are more workarounds in this issue:

lucide-icons/lucide#1482

@dan5py
Copy link
Contributor

dan5py commented Aug 8, 2023

Hi @KaramveerSinghSidhu both the CLI and the Manual guide are missing the icons dependency installation. The Icon library changes from theme to theme:

  • Default uses lucide-react
  • New York uses @radix-ui/react-icons

You can manually install them based on your current theme.

@KaramveerSinghSidhu
Copy link
Author

Yeah, i played around with it. It was as JairHuamanBellido said. its a next js versions issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants