no need to remove extensions ... in layout.tsx add suppressHydrationWarning like in the down code and the error will disappear. use this
return ( <html lang='en' suppressHydrationWarning>