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
11.25k stars 511 forks source link

0.378.0 introduced a hydration bug that can be seen when using nextjs or remix #2137

Closed roger-tbg closed 6 days ago

roger-tbg commented 6 months ago

Package

Version

0.378.0

Can you reproduce this in the latest version?

Browser

Operating system

Description

when updating from 0.372.0 to 0.378.0 i'm starting to see these in the console using ANY lucide icons that do not provide an extra className:

Steps to reproduce

Using nextjs or remix, just add any icon:

this will result in: Warning: Prop className did not match. Server: "lucide lucide-line-chart " Client: "lucide lucide-line-chart"

(note the extra space)

downgrading to 0.372.0 made this go away.

Checklist

  • [X] I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
benjick commented 4 months ago

Same issue here with 0.403.0

williamlmao commented 3 months ago

Same issue here.

ericfennis commented 6 days ago

Is fixed by #2522