Jisap / Portfolio_Next14-Tailwind-Shadcn

Portfolio con Next14, tailwind, shandcn, framer motion etc de la mano de Christian Mihai
0 stars 1 forks source link

Unhandled Runtime Error #1

Open whoafridi opened 9 months ago

whoafridi commented 9 months ago

Got this error when run the app in development server using npm run dev . Did you notice that issue? image


image

Jisap commented 9 months ago

"I had that hydration error during development; simply reloading the page made it disappear. But since it was inconvenient, I decided to use a tip from another web developer that I'll include at the end of this comment. In any case, when I took the portfolio to production, the errors disappeared."

In template.jsx

useEffect(() => { setIsMounted(true); },[])

if(!isMounted){ return null }

In netifly: https://next14-portfolio.netlify.app/