#createContext error

1 messages · Page 1 of 1 (latest)

junior furnace
#

I was using NextJS v16.1 to build a project, and whenever I imported an Icon from Lucide-react, it worked fine without me adding "use client"...

I got another project I started working on but it was after NextJS 16.2 was released, in this project, in any file I import any icon from lucide -react, I always get an error, needing me to add "use-client" to that file. I don't know if it's me doing something wrong or it's a new feature in the new version of NextJS

Anyone else facing this?

sly parcelBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

light solstice
#

Is lucide-react version same on both the projects ?

junior furnace
#

Next is 16.2.1
Lucide-react 1.0.0-rc.0

#

Solved now. The issue was the version of Lucide-react I was using... I upgraded to version 1.60 and it's all working very fine now