Lucide react
Keep getting this error, never had a problem with this package a day in my life...
4 Replies
Are you importing icons dynamically in
components/icons.tsx
like in their README for Next.js?can you go to that folder and make sure that it both exists and is downloaded? if you're using onedrive, it might not be downloaded unless you tell it to. in general, you shouldn't use onedrive for this reason, and use git to backup and source control your repo
I ran into this recently and it seems to be a bug with the latest version of next and lucide-react.
https://github.com/lucide-icons/lucide/issues/1482
downgrade lucide-react to
0.263.1
and you should be fineGitHub
Import bug in Next.js (v13.4.13) · Issue #1482 · lucide-icons/lucide
Prerequisites Version: 0.264.0 Are you running from source/main: nop Are you using a released build: nop Operating system: Mac OS Bits: - Step to reproduce Import icon in a Next.js v13.4.13 (latest...
Absolute legend! Thanks everyone.